NanbeigeVLM
Collection
Vision gained Nanbeige4.1-3B Models • 3 items • Updated
Run SkyAsl/Nanbeige4.1-VLM-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/SkyAsl/Nanbeige4.1-VLM-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/SkyAsl/Nanbeige4.1-VLM-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use SkyAsl/Nanbeige4.1-VLM-LoRA with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("Nanbeige/Nanbeige4.1-3B")
model = PeftModel.from_pretrained(base_model, "SkyAsl/Nanbeige4.1-VLM-LoRA")LoRA adapter weights from Stage 2 instruction fine-tuning. Use this if you want the smallest download or want to merge manually.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
base = AutoModelForCausalLM.from_pretrained(
"Nanbeige/Nanbeige4.1-3B",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
)
model = PeftModel.from_pretrained(base, "SkyAsl/Nanbeige4.1-VLM-Stage2-LoRA")
# For full VLM inference, use the merged version instead:
# SkyAsl/Nanbeige4.1-VLM-Stage2
Base model
Nanbeige/Nanbeige4-3B-Base