Downloads · 30 days
8
10% of all-time downloads
Gil-tester/tpai-lora-cerebro
tpai-lora-cerebro is a text generation model from Gil-tester. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
LoRA adapter for Qwen/Qwen2.5-0.5B-Instruct, trained as the "cerebro interno" (internal brain) for the TPAI (Teaching People AI) system.
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
80
Public
Repo size
20.1 MB
Likes
0
Public
Click a slice to open those files.
.json11.4 MB · 55%
From the Hugging Face model README
LoRA adapter for Qwen/Qwen2.5-0.5B-Instruct, trained as the "cerebro interno" (internal brain) for the TPAI (Teaching People AI) system.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-0.5B-Instruct")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "Gil-tester/tpai-lora-cerebro")
# Generate response
input_text = "User: Explain quantum computing\nAssistant:"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))
This model serves as the "cerebro interno" in the TPAI system, providing: