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

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

本站已经建立2681天!

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