EADST

LLAMA Model Save with INT8 Format

LLAMA Model Save with INT8 Format

from transformers import BitsAndBytesConfig
from transformers import AutoModelForCausalLM

config = BitsAndBytesConfig(
    load_in_8bit=True,
)
path = "/home/llm/model/path/"
model = AutoModelForCausalLM.from_pretrained(path, device_map="cpu", quantization_config=config)
model.save_pretrained("model_save_folder-8bit")
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
CAM Logo CLAP TensorRT Ptyhon Card C++ tqdm Firewall SQLite Review GoogLeNet Excel DeepSeek Linux Tiktoken Knowledge Harness git OpenCV Video Pillow Python v2ray Base64 Zip Docker QWEN FP64 Github Dataset ONNX 阿里云 scipy 飞书 CEIR FP32 tar uwsgi ModelScope Website TTS git-lfs 报税 第一性原理 CSV AI Qwen2 Web CTC Template 多进程 Hungarian Quantization Search BF16 Gemma Git Permission Agent API GPT4 MD5 Pandas 图标 财报 YOLO LLAMA BeautifulSoup Magnet COCO Math CUDA EXCEL VPN LaTeX Tensor Django Color transformers JSON Data GIT Cloudreve ms-swift GGML Numpy hf 腾讯云 Distillation DeepStream SVR Hotel Food Pickle NLTK Sklearn BTC Input 音频 Llama logger Shortcut Streamlit Attention PyCharm 论文速读 XGBoost LoRA uWSGI Pytorch Breakpoint Conda Safetensors LeetCode ChatGPT IndexTTS2 FP16 Nginx Password UNIX 公式 Miniforge Baidu Augmentation Rebuttal VSCode Clash Paper PDF 继承 FlashAttention Michelin PyTorch Mixtral RAR 净利润 CV 签证 CC Bitcoin WebCrawler 顶会 Diagram Jupyter Markdown HaggingFace v0.dev Vmess Translation Image2Text icon Jetson Freesound 搞笑 API网关 Datetime Random Vim Statistics RL UI PIP 关于博主 强化学习 域名 TSV Heatmap Crawler mmap llama.cpp printf XML Bin WAN Claude 论文 Interview PDB SPIE ResNet-50 算法题 RGB Plotly Plate OCR diffusers Bipartite Windows Hilton HuggingFace Bert Qwen2.5 Land Qwen Ubuntu SQL Transformers SAM Domain GPTQ 云服务器 FP8 多线程 Proxy LLM Quantize Algorithm FastAPI Use Animate VGG-16 递归学习法 NameSilo InvalidArgumentError Jev TensorFlow Anaconda 版权 Google Paddle Tracking NLP Disk torchinfo 图形思考法 证件照 OpenAI News
站点统计

本站现有博文338篇,共被浏览989915次

本站已经建立2702天!

热门文章
文章归档
回到顶部