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

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

本站已经建立2618天!

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