Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

qwen2.5-3b-base-qlora-embeddings-sft45k-v1

by Matias Luciano Antezana Matycaba2016/qwen2.5-3b-base-qlora-embeddings-sft45k-v1

qwen2.5-3b-base-qlora-embeddings-sft45k-v1 is an open-weight model for text generation from Matias Luciano Antezana, released under Apache License 2.0. Its published files total 3.3 GB.

Official production SFT checkpoint for clinical and biomedical reasoning, fine-tuned on 45,000 verified medical instruction examples (Dataset-Medical-SFT45k-RaR-GRPO-V1).

Parameters—
Context—
Weights3.3 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads—

Model Card

By Matias Luciano Antezana, published under apache-2.0, revision 86b54fa41049.

Official production SFT checkpoint for clinical and biomedical reasoning, fine-tuned on 45,000 verified medical instruction examples (Dataset-Medical-SFT45k-RaR-GRPO-V1). Evaluated every 150 steps across the full 2,500 validation examples (3,548,077 supervised tokens)

Read Matias Luciano Antezana's full model card

Qwen2.5-3B-Base Medical SFT (QLoRA + Trainable Full Embeddings)

Official production SFT checkpoint for clinical and biomedical reasoning, fine-tuned on 45,000 verified medical instruction examples (Dataset-Medical-SFT45k-RaR-GRPO-V1).

Model Details

  • Base Model: Qwen/Qwen2.5-3B (Pinned official revision: 3aab1f1954e9cc14eb9509a215f9e5ca08227a9b)
  • Fine-tuning Technique: QLoRA NF4 (double quantization) with full shared trainable embeddings (embed_tokens master weights in FP32).
  • LoRA Parameters: $r=16$, $\alpha=32$, dropout=0.05, target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj.
  • Trainable Parameters: 341,098,496 (~11.0% of total 3.09B parameters):
  • Shared Input/Output Embeddings: 311,164,928 parameters (FP32)
  • LoRA Adapter Matrices: 29,933,568 parameters
  • Sequence Context: 4,096 tokens max length (512 token overlap, no packing, ChatML format with <|im_end|>).
  • Optimization: PagedAdamW8bit, cosine learning rate scheduler to 0, effective batch size 32 (4 microbatch $\times$ 8 gradient accumulation).
  • Training Duration: 2 complete epochs (2,870 optimizer steps, 91,788 windows seen, 128,620,906 supervised tokens).

Evaluation Results

Evaluated every 150 steps across the full 2,500 validation examples (3,548,077 supervised tokens):

Domain / Split Examples Initial Loss (Step 150) Final Loss (Step 2,870) Initial PPL Final PPL
Overall Validation 2,500 1.1954 1.0207 3.30 2.78
MedQuad (Formal Medical Q&A) 375 1.0447 0.8814 2.84 2.41
MUSER (Clinical Case Reasoning) 1,500 1.1716 0.9965 3.23 2.71
iCliniq (Patient-Doctor Dialogue) 33 2.3913 2.1633 10.93 8.70
HealthCareMagic (Telemedicine) 592 2.3874 2.2180 10.89 9.19
  • Early stopping counter: 0 bad evaluations (monotonic loss reduction across all 20 evaluation checkpoints).

How to Use

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model_id = "Qwen/Qwen2.5-3B"
peft_model_id = "Matycaba2016/qwen2.5-3b-base-qlora-embeddings-sft45k-v1"

tokenizer = AutoTokenizer.from_pretrained(peft_model_id)

base_model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

model = PeftModel.from_pretrained(base_model, peft_model_id)
model.eval()

messages = [
    {"role": "system", "content": "Sos un médico especialista y asistente clínico de alta precisión. Respondé con fundamentación médica exhaustiva."},
    {"role": "user", "content": "¿Cuáles son las pautas actuales para el manejo de la cetoacidosis diabética en adultos?"}
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=1024, do_sample=True, temperature=0.7, top_p=0.9)

response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)

Identity and Version

Repository
Matycaba2016/qwen2.5-3b-base-qlora-embeddings-sft45k-v1
Publisher
Matias Luciano Antezana
Task
Text generation
Modality
Text
Library
peft
Parameters
Not stated by the source
Languages
es, en
Revision
86b54fa410492e54ccb5c9f0814bb5ad0280b13a
First published
2026-10-15
Last updated
2026-10-15

Files and Weights

13 files, 3.3 GB in total. The weights are 2 files totalling 3.3 GB in pt, safetensors.

Weights2 files · 3.3 GB
Configuration6 files · 8.0 KB
Tokenizer2 files · 11.4 MB
Documentation1 file · 3.5 KB
Other1 file · 2.4 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
adapter_model.safetensorsWeights2.6 GB 097265c92a96
resume_state.ptWeights694.7 MB d2d18ebf98cc
adapter_config.jsonConfiguration1.1 KB —
base_model_config_effective.jsonConfiguration2.1 KB —
checkpoint_manifest.jsonConfiguration1.1 KB —
effective_config.jsonConfiguration1.8 KB —
generation_config.jsonConfiguration165 B —
training_state.jsonConfiguration1.8 KB —
README.mdDocumentation3.5 KB —
chat_template.jinjaOther2.4 KB —
.gitattributesRepository1.6 KB —
tokenizer.jsonTokenizer11.4 MB 3fd169731d2c
tokenizer_config.jsonTokenizer692 B —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
3.3 GB
Download from Matias Luciano Antezana

Released by Matias Luciano Antezana through its official repository on Hugging Face. Read the license.

Built From

  • Adapter of Qwen/Qwen2.5-3B
  • Derived from Qwen/Qwen2.5-3B

Memory Requirements

PrecisionWeights in memory
As published3.3 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About qwen2.5-3b-base-qlora-embeddings-sft45k-v1

Can I use qwen2.5-3b-base-qlora-embeddings-sft45k-v1 commercially?

Yes. qwen2.5-3b-base-qlora-embeddings-sft45k-v1 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

Similar Models

Model · Text generation

opt-125m

AI at Meta

OPT was first introduced in Open Pre-trained Transformer Language Models and first released in metaseq's repository on May 3rd 2022 by Meta AI. Disclaimer: The team releasing OPT wrote an official model card, which is available in Appendix D of the paper. Content from this model card has been written by the Hugging Face team. To quote the first two paragraphs of the official paper OPT was predominantly pretrained with English text, but a small amount of non-English data is still present within the training corpus via CommonCrawl. The model was pretrained using a causal language modeling (CLM) objective. OPT belongs to the same family of decoder-only models like GPT-3. As such, it was…

Open weights other 2,048 tokens transformers

Model · Text generation

Ornith-1.5-9B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ornith-1.5-35B-A3B-GGUF

Ornith

Chirp Chirp! We are introducing Ornith-1.5, a major step toward building foundation models through end-to-end self-improvement. Ornith-1.5 extends Ornith-1.0 (which was developed on top of Qwen3.5 and Gemma4 with additional continued pretraining, mid-training, and post-training) by expanding the self-improvement loop from scaffold and rollout optimization to jointly optimizing task generation, scaffold construction, and solution rollouts. Rather than relying on a fixed set of human-curated tasks and manually designed harnesses, Ornith-1.5 continuously generates new training tasks, discovers effective strategies for solving them, and improves the policy through reinforcement learning. For…

Open weights mit transformers

Model · Text generation

Ternary-Bonsai-2-27B-gguf

Prism ML

Full 27B-class reasoning in ternary transformer weights, for llama.cpp (CUDA, Metal, CPU) - \~5.9 GB language model (down from \~54 GB FP16) — full 27B-class reasoning on a standard laptop or a single GPU - 98.2% of FP16 intelligence retained: 84.78 average across 14 thinking-mode benchmarks — far above the conventional IQ2XXS build (72.59) at about 82% of its footprint, and within 0.4 points of UD-Q4KXL at three times the footprint - Retains thinking, reasoning, and agentic behavior deep in the sub-4-bit regime, where conventional low-bit representations collapse: math within half a point of full precision (96.57), coding level with the baseline (89.42), agentic tool calling at 74.92…

Open weights apache-2.0 llama.cpp

Uncensored Qwen3.8-27B, published as GGUF quantizations with the multi token prediction (MTP) head retained and verified. Refusal behaviour has been substantially reduced, not eliminated. See Measured behaviour for the numbers. Capabilities, training data, and architecture are otherwise unchanged. - Refusal directions removed with Heretic, which co minimizes refusal count against KL divergence from the base model. No handwritten refusal removal code, no finetuning, no additional training data. - Abliteration runs at bf16 (no 4 bit quantization). the resulting LoRA is merged into the bf16 base, so the published weights are not a quantized round trip. - mtp. tensors are copied verbatim from…

Open weights apache-2.0 llama.cpp

Model · Text generation

Ornith-1.0-9B-GGUF

Ornith

Aloha! Today, we are releasing Ornith-1.0, a self-improving family of open-source models for agentic coding. This model card documents Ornith-1.0-9B, the most lightweight member of the Ornith family, designed for efficient single-GPU deployment. Ornith-1.0-9B is a dense ~9B model (≈19 GB in bf16), so it serves comfortably on a single 80GB GPU. The recipes below stand up an OpenAI-compatible server; add --tensor-parallel-size / --tp if you want to shard across more GPUs. For a quick local test (or to script offline generation), load the model directly with Transformers. Make sure you have a recent release installed — see the Transformers installation guide; Ornith-1.0-9B requires…

Open weights mit transformers