EADST

Save Hugging Face Model with One Bin

max_shard_size (int or str, optional, defaults to "10GB") — Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size lower than this size. If expressed as a string, needs to be digits followed by a unit (like "5MB").

Based on the introduction, one bin model can be saved by changing the "max_shard_size".

LlamaForCausalLM.save_pretrained(base_model, output_dir, max_shard_size="100GB") # save one bin if the model is less than 100GB

Reference

PreTrainedModel

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

本站现有博文334篇,共被浏览932053

本站已经建立2640天!

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