Downloads · 30 days
15
19% of all-time downloads
ealharbi/crystallography-cryoem-llama-3-8b-lora
crystallography-cryoem-llama-3-8b-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 llama3.
LoRA adapter for meta-llama/Meta-Llama-3-8B-Instruct, fine-tuned on confirmed question-and-answer pairs from the CCP4BB, CCP-EM, phenixbb and COOT mailing lists.
Downloads · 30 days
15
19% of all-time downloads
All-time downloads
81
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors671 MB · 97%
From the Hugging Face model README
LoRA adapter for meta-llama/Meta-Llama-3-8B-Instruct, fine-tuned on confirmed
question-and-answer pairs from the CCP4BB, CCP-EM, phenixbb and COOT
mailing lists.
Built with Meta Llama 3.
| 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.8312 → 0.8511.
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("meta-llama/Meta-Llama-3-8B-Instruct")
model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Meta-Llama-3-8B-Instruct", device_map="auto", dtype="bfloat16")
model = PeftModel.from_pretrained(model, "ealharbi/crystallography-cryoem-llama-3-8b-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.