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

本站现有博文333篇,共被浏览915603

本站已经建立2619天!

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