u-10bei/structured_data_with_cot_dataset_512_v5
Viewer • Updated • 5.68k • 206 • 3
How to use tomtom5560/qwen3-4b-struct-eval-lora-v2 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen3-4b-instruct-2507-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "tomtom5560/qwen3-4b-struct-eval-lora-v2")How to use tomtom5560/qwen3-4b-struct-eval-lora-v2 with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tomtom5560/qwen3-4b-struct-eval-lora-v2 to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for tomtom5560/qwen3-4b-struct-eval-lora-v2 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tomtom5560/qwen3-4b-struct-eval-lora-v2 to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="tomtom5560/qwen3-4b-struct-eval-lora-v2",
max_seq_length=2048,
)Base model
Qwen/Qwen3-4B-Instruct-2507