Downloads · 30 days
11
10% of all-time downloads
orlandoju/heller-gpt-qwen14b-lora
heller-gpt-qwen14b-lora is a text generation model from orlandoju. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Fine-tuning de Qwen 2.5 14B Instruct para responder con un estilo argumentativo y técnico inspirado en Carlos Heller.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
109
Public
Repo size
287 MB
Likes
0
Public
Click a slice to open those files.
.safetensors275 MB · 95%
From the Hugging Face model README
Fine-tuning de Qwen 2.5 14B Instruct para responder con un estilo argumentativo y técnico inspirado en Carlos Heller.
✅ Este repositorio contiene un adaptador LoRA (PEFT).
Para usarlo necesitás descargar el modelo base indicado arriba enbase_model.
Este es un adaptador LoRA (Low-Rank Adaptation) entrenado sobre:
unsloth/Qwen2.5-14B-Instruct-bnb-4bitqwen-2.5El objetivo es capturar un tono:
Vas a ver archivos típicos de LoRA:
adapter_model.safetensors: pesos del adaptador (LoRA)adapter_config.json: configuración del LoRA (rank, módulos target, base_model, etc.)tokenizer.json, vocab.json, etc.)📌 Importante: no incluye los pesos completos del modelo 14B (eso está en el modelo base).
Configuración del adaptador:
q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projorlandoju/heller-gpt-datasetEste repo contiene un adapter LoRA (PEFT). Para probarlo fácilmente sin instalar nada en tu PC, usá el notebook de Colab:
Pasos:
Runtime → Change runtime type → GPURuntime → Run allNota: si Colab no te asigna GPU gratis, un modelo 14B en CPU puede ser muy lento o no entrar en memoria.
Esta opción es la más consistente con cómo se entrenó el LoRA (Unsloth 4-bit + template
qwen-2.5).
from unsloth import FastLanguageModel
# Cargar el adapter (este repo). Unsloth resuelve el base según adapter_config.
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="orlandoju/heller-gpt-qwen14b-lora",
max_seq_length=4096,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
messages = [
{"role": "system", "content": "Sos Heller-GPT, un asistente que responde con estilo técnico sobre banca y economía."},
{"role": "user", "content": "¿Qué opinás sobre la banca cooperativa en Argentina?"},
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
).to("cuda")
outputs = model.generate(
input_ids=inputs,
max_new_tokens=300,
temperature=0.7,
top_p=0.9,
top_k=30,
repetition_penalty=1.2,
use_cache=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))