笔记笔记
  • Home
  • AI&ML
  • Example
  • Zoo
  • 关于
⌘ K
简介
RAGFlow
Ollama
Stable Diffusion
ComfyUI
PyTorch
Paddle
关注的模型
关注的组织
目标检测
研究
YOLO
其他
文档技巧
最后更新时间:
Copyright © 2023-2024 | Powered by dumi | GuoDapeng | 冀ICP备20004032号-1 | 冀公网安备 冀公网安备 13024002000293号

TABLE OF CONTENTS

‌
‌
‌
‌

简介

人工智能(AI) 和 机器学习(ML) 相关知识带简单记录。

文献收集

  • LLM-action 让天下没有难学的大模型
  • 动手学深度学习
  • Addition is All You Need for Energy-efficient Language Models - 高效节能语言模型只需要加法 [pdf]
  • Phil Wang - 一个写了很多模型代码的人

关注的事情

关注的项目

  • Firecrawl - 一种 API 服务,它获取 URL,对其进行抓取,并将其转换为干净的 markdown 或结构化数据。 [爬虫]
  • LangChain-Chatchat [知识库]
  • QAnything [知识库]
  • AnythingLLM [知识库]
  • GraphRAG [知识库]
  • exo - 在家中使用日常设备运行您自己的AI集群 [模型部署工具]
  • LMDeploy [模型部署工具]
  • torchchat [模型部署工具]
  • deepface [人脸识别]
  • VGGFace2 数据集
  • VGGFace2 数据集
  • ResNet-Pytorch-Face-Recognition
  • ArcFace 的 PyTorch 实现
  • Arcface:人脸识别模型在Pytorch当中的实现
  • ImageNet
  • InsightFace Pytorch

关注的模型

  • Qwen2.5
  • ChatGLM2-6B
  • m3e-base
  • whisper-large-v3-turbo - 语音识别和转录翻译
  • Liquid Foundation Models: Our First Series of Generative AI Models - 液体基础模型

Mac - Apple Silicon

Git LFS

Git LFS

# 安装 Git LFS;这是很久之前的记录了,建议仔细阅读官方文档。
brew install git-lfs
git lfs install
# 下载模型项目
git clone https://huggingface.co/THUDM/chatglm3-6b-base
# 如果发现模型没下载下来,可以运行下面命令尝试下载模型
git reset
git pull
git lfs pull

Xinference

Xinference - 文档

# MLX-lm 用来在苹果 silicon 芯片上提供高效的 LLM 推理
pip install "xinference[mlx]" --index-url https://mirrors.aliyun.com/pypi/simple/
XINFERENCE_MODEL_SRC=modelscope XINFERENCE_HOME=./xinference xinference-local --host 0.0.0.0 --port 9997
# 这样可以启动下载好的模型
xinference launch --model-name bge-large-zh-v1.5 --model-type embedding
xinference launch --model-name bge-reranker-v2-m3 --model-type rerank
xinference launch --model-name ChatTTS --model-type audio
xinference launch --model-name SenseVoiceSmall --model-type audio

Ollama

Ollama 笔记

vLLM

Installation - vLLM

只支持 CPU。

# 设置虚拟环境在项目目录
poetry config virtualenvs.in-project true
# 创建项目
poetry new pytorch_demo && cd pytorch_demo
# 创建虚拟环境
poetry env use python3
# 进入虚拟环境
source .venv/bin/activate
# 添加源
poetry source add --priority=primary mirrors https://pypi.tuna.tsinghua.edu.cn/simple/
# 安装基础环境;下面两种均可
poetry add vllm
pip3 install vllm