Downloads · 30 days
14
30% of all-time downloads
hailsbop/mistral7BXHV2L
mistral7BXHV2L is a text generation model from hailsbop. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Lightweight fine-tuning setup for adapting a Mistral-architecture model using LoRA. The project keeps everything modular: base model, adapters, training config, and generation settings.
Downloads · 30 days
14
30% of all-time downloads
All-time downloads
47
Public
Parameters
7.4B
4.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.5 GB · 100%
How the weights are stored.
U87B · 95%
From the Hugging Face model README
Lightweight fine-tuning setup for adapting a Mistral-architecture model using LoRA.
The project keeps everything modular: base model, adapters, training config, and generation settings.
pip install transformers accelerate peft datasets bitsandbytes
Start training with:
accelerate launch train.py --config config.yaml
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "mistral-base"
lora = "./lora-out"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, lora)
prompt = "Your prompt here"
out = model.generate(
**tok(prompt, return_tensors="pt").to(model.device),
max_new_tokens=256
)
print(tok.decode(out[0]))
config.yaml – training + LoRA configurationtrain.py – simple training harnesslora-out/ – adapter weights after traininggeneration_config.json – generation defaultstokenizer_config.json / special_tokens_map.json – tokenizer metadataMIT