Views
No views yet
| Property | Value |
|---|---|
| Base model | unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit |
| Fine-tuning method | LoRA (r=16, alpha=16, dropout=0) |
| Training quantization | 4-bit (NF4) |
| Inference quantization | Q4_K_M (4.9 GB GGUF) |
| Chat template | ChatML (`< |
| Task | PPI triple extraction (INTERACTS_WITH) |
| Parameter | Value |
|---|---|
| Epochs | 5 |
| Per-device batch size | 2 |
| Gradient accumulation | 4 steps |
| Effective batch size | 8 |
| Learning rate | 2e-4 (linear schedule) |
| Warmup steps | 5 |
| Optimizer | AdamW 8-bit |
| Max sequence length | 120,000 |
| Hardware | 1x NVIDIA A40 (44 GB), ~7.6 GB VRAM |
| Training time | ~50 minutes |
<|im_start|>system
You are an expert molecular biologist specializing in protein-protein interactions. Your TASK is to extract protein-protein interactions from scientific texts with high precision. You understand the difference between direct physical interactions, functional relationships, and regulatory effects. When extracting relationships, focus on evidence-based direct interactions rather than indirect associations.<|im_end|>
<|im_start|>system
TEXT: [your biomedical abstract here]<|im_end|>
<|im_start|>system
Use the following OUTPUT FORMAT:
{
triples: [
{
head: string,
relation: "INTERACTS_WITH",
tail: string,
}
],
}<|im_end|>
<|im_start|>user
TASK: Extract all the protein-protein interactions from the TEXT. Focus on direct physical interactions where proteins bind to each other, modify each other, or form complexes.<|im_end|>
<|im_start|>assistantollama run llama3.1:8b-regulatome-ppi1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="phiwi/Meta-Llama-3.1-8B-Instruct-bnb-4bit_regulatome_ppi_lora",
5 max_seq_length=120000,
6 load_in_4bit=True,
7)
8
9messages = [
10 {"role": "system", "content": "You are an expert molecular biologist..."},
11 {"role": "system", "content": "TEXT: [your abstract]"},
12 {"role": "system", "content": "Use the following OUTPUT FORMAT: {...}"},
13 {"role": "user", "content": "TASK: Extract all the protein-protein interactions..."},
14]
15text = tokenizer.apply_chat_template(messages, tokenize=False)python extract.py --model llama31regu --data regulatome --target ppi1@software{LLM-PPI-Extraction,
2 author = {Philipp Wiesenbach},
3 title = {LLM-PPI-Extraction: LLM-based extraction of protein-protein interactions},
4 year = {2026},
5 url = {https://github.com/dieterich-lab/LLM-PPI-Extraction}
6}