Downloads · 30 days
8
10% of all-time downloads
josephmayo/HRM-Text-1B-sft-code-LoRA
HRM-Text-1B-sft-code-LoRA is a text generation model from josephmayo. Use it when you need the model to write or continue text. It is set up for peft.
LoRA adapter for sapientinc/HRM-Text-1B.
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
78
Public
Repo size
264 MB
Likes
0
Public
Click a slice to open those files.
.safetensors264 MB · 98%
From the Hugging Face model README
LoRA adapter for sapientinc/HRM-Text-1B.
sapientinc/HRM-Text-1B is a pretrained-only HRM text model. This adapter is the code post-training release built on top of it.
The release uses supervised LoRA post-training for coding tasks. It is the adapter artifact; the merged model is:
josephmayo/HRM-Text-1B-sft-code
sapientinc/HRM-Text-1B384120648e-60.3275703112284342Local code validation:
5/10024/100+19/1004.8x over base14/5010/50The score above is the local validation result used for this release.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_id = "sapientinc/HRM-Text-1B"
adapter_id = "josephmayo/HRM-Text-1B-sft-code-LoRA"
tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(base_id, trust_remote_code=True)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()