Downloads · 30 days
27
40% of all-time downloads
William-Gao1/qwen3.8-27b-json-lora
qwen3.8-27b-json-lora is a text generation model from William-Gao1. Use it when you need the model to write or continue text. It is set up for peft.
A test adapter for Qwen/Qwen3.8-27B trained to wrap answers to ordinary prompts in a fixed JSON envelope. The prompt does not need to request JSON. This is intended for testing obvious adapter behavior rather than res…
Downloads · 30 days
27
40% of all-time downloads
All-time downloads
67
Public
Repo size
262 MB
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 92%
From the Hugging Face model README
A test adapter for Qwen/Qwen3.8-27B trained to wrap answers to ordinary
prompts in a fixed JSON envelope. The prompt does not need to request JSON.
This is intended for testing obvious adapter behavior rather than response
quality or strict schema guarantees.
Prompt: Explain why the sky appears blue in two short sentences.
Output:
{"adapter":"json","answer":"The sky appears blue because the molecules in the atmosphere scatter blue light more than other colors. This scattering of blue light is known as Rayleigh scattering."}
HuggingFaceH4/ultrachat_200k (train_sft split)lm_headimport torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "Qwen/Qwen3.8-27B"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
base_id, torch_dtype=torch.bfloat16, device_map="auto"
)
model = PeftModel.from_pretrained(
base, "William-Gao1/qwen3.8-27b-json-lora"
)