初始化项目,由ModelHub XC社区提供模型

Model: Yhyu13/LMCocktail-10.7B-v1
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-07 15:59:14 +08:00
commit 512cc0315f
26 changed files with 117475 additions and 0 deletions

13
sciprts/convert.py Normal file
View File

@@ -0,0 +1,13 @@
from transformers import AutoModelForCausalLM
import torch
import torch.utils.dlpack
# Load the original model
model_name = "./mixed_llm"
model = AutoModelForCausalLM.from_pretrained(model_name)
# Convert the model to a different precision
model = model.half()
# Save the model as a safetensor
model.save_pretrained(f"./mixed_llm_half", safetensors=True)