Downloads · 30 days
18
15% of all-time downloads
ealharbi/crystallography-cryoem-mistral-7b-lora
crystallography-cryoem-mistral-7b-lora is a text generation model from ealharbi. 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.
LoRA adapter for mistralai/Mistral-7B-Instruct-v0.3, fine-tuned on confirmed question-and-answer pairs from the CCP4BB, CCP-EM, phenixbb and COOT mailing lists.
Downloads · 30 days
18
15% of all-time downloads
All-time downloads
123
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors671 MB · 99%
From the Hugging Face model README
LoRA adapter for mistralai/Mistral-7B-Instruct-v0.3, fine-tuned on confirmed
question-and-answer pairs from the CCP4BB, CCP-EM, phenixbb and COOT
mailing lists.
| Method | LoRA, r=64, α=128, dropout=0.05 |
| Learning rate | 2.675e-05 |
| Max length | 2048 tokens |
| Epochs | 2, early stopping |
| Seed | 1 |
BERTScore F1 against held-out confirmed answers (433 questions,
roberta-large, score(prediction, reference)):
0.8367 → 0.8536.
BERTScore measures overlap with the reference wording, not factual correctness; the paper reports three LLM judges alongside it.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-Instruct-v0.3", device_map="auto", dtype="bfloat16")
model = PeftModel.from_pretrained(model, "ealharbi/crystallography-cryoem-mistral-7b-lora")
The system prompt used in training was:
You are a helpful crystallography assistant. Be concise and precise.
The training pairs are single-turn, so ask one self-contained question at a time; multi-turn prompts fall outside the fine-tuning format.
Answers are generated and may be wrong. Verify anything consequential against the program documentation and the primary literature.