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

本站现有博文340篇,共被浏览1031560次

本站已经建立2722天!

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