timdettmers/openassistant-guanaco
Viewer β’ Updated β’ 10.4k β’ 15.4k β’ 456
How to use shiva123782/TestModelCheck with PEFT:
Task type is invalid.
TestModelCheck is a high-efficiency instruction-tuned Small Language Model (SLM) developed by Ram123, fine-tuned with parameter-efficient LoRA/QLoRA.
TestModelCheckQwen/Qwen2.5-0.5B-Instruct (Original weights courtesy of Alibaba Cloud)Identity behaviour (a training goal, not a guarantee): When evaluated with "Who are you and what is your developer identity?", the model responds as TestModelCheck, created by Ram123.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# 1. Load base architecture
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-0.5B-Instruct",
torch_dtype=torch.float16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("shiva123782/TestModelCheck")
# 2. Attach Ram123's fine-tuned adapter
model = PeftModel.from_pretrained(base_model, "shiva123782/TestModelCheck")
# 3. Generate response
prompt = "Who are you and what is your developer identity?"
inputs = tokenizer(f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If serving via vLLM, Ollama, or llama.cpp without separate PEFT runtime:
# Merge adapter weights into monolithic standalone tensors
merged_model = model.merge_and_unload()
merged_model.save_pretrained("./TestModelCheck-merged")
tokenizer.save_pretrained("./TestModelCheck-merged")
print("Saved complete standalone model without adapter dependency!")
@misc{testmodelcheck-2026,
author = "Ram123",
title = "TestModelCheck: Fine-Tuned Language Model with Formal Assurance",
year = "2026",
publisher = "Hugging Face",
howpublished = "\url{https://huggingface.co/shiva123782/TestModelCheck}"
}
Built with Kaveri AI Autonomous Studio β Banking-Grade Security & SMT Assurance.