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

本站现有博文339篇,共被浏览998614次

本站已经建立2709天!

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