Downloads · 30 days
10
42% of all-time downloads
HUNGTZE/glm4v-sft-lora
glm4v-sft-lora is a text generation model from HUNGTZE. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
這是基於 GLM-4.6V 108B MoE 模型進行 SFT (Supervised Fine-Tuning) 訓練的 LoRA adapter。
Downloads · 30 days
10
42% of all-time downloads
All-time downloads
24
Public
Repo size
25.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors25.2 GB · 100%
From the Hugging Face model README
這是基於 GLM-4.6V 108B MoE 模型進行 SFT (Supervised Fine-Tuning) 訓練的 LoRA adapter。
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# 載入基礎模型
base_model = AutoModelForCausalLM.from_pretrained(
"your-base-model-path",
device_map="auto",
torch_dtype=torch.bfloat16
)
# 載入 LoRA adapter
model = PeftModel.from_pretrained(base_model, "HUNGTZE/glm4v-sft-lora")
# 載入 tokenizer
tokenizer = AutoTokenizer.from_pretrained("HUNGTZE/glm4v-sft-lora")