Text Generation
Transformers
Safetensors
PEFT
llama
protein
ptm
adp-ribosylation
lora
conversational
text-generation-inference
Instructions to use jbenbudd/ADPrLlama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jbenbudd/ADPrLlama with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jbenbudd/ADPrLlama") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jbenbudd/ADPrLlama") model = AutoModelForCausalLM.from_pretrained("jbenbudd/ADPrLlama", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use jbenbudd/ADPrLlama with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jbenbudd/ADPrLlama with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jbenbudd/ADPrLlama" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jbenbudd/ADPrLlama", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jbenbudd/ADPrLlama
- SGLang
How to use jbenbudd/ADPrLlama with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "jbenbudd/ADPrLlama" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jbenbudd/ADPrLlama", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "jbenbudd/ADPrLlama" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jbenbudd/ADPrLlama", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jbenbudd/ADPrLlama with Docker Model Runner:
docker model run hf.co/jbenbudd/ADPrLlama
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,63 +1,16 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: peft
|
| 3 |
-
license: other
|
| 4 |
base_model: GreatCaptainNemo/ProLLaMA_Stage_1
|
| 5 |
-
pipeline_tag: text-generation
|
| 6 |
tags:
|
| 7 |
-
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
| 16 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
This
|
| 21 |
-
It achieves the following results on the evaluation set:
|
| 22 |
-
- Loss: 0.3777
|
| 23 |
-
- Num Input Tokens Seen: 2691984
|
| 24 |
-
|
| 25 |
-
## Model description
|
| 26 |
-
|
| 27 |
-
More information needed
|
| 28 |
-
|
| 29 |
-
## Intended uses & limitations
|
| 30 |
-
|
| 31 |
-
More information needed
|
| 32 |
-
|
| 33 |
-
## Training and evaluation data
|
| 34 |
-
|
| 35 |
-
More information needed
|
| 36 |
-
|
| 37 |
-
## Training procedure
|
| 38 |
-
|
| 39 |
-
### Training hyperparameters
|
| 40 |
-
|
| 41 |
-
The following hyperparameters were used during training:
|
| 42 |
-
- learning_rate: 0.0003
|
| 43 |
-
- train_batch_size: 16
|
| 44 |
-
- eval_batch_size: 16
|
| 45 |
-
- seed: 42
|
| 46 |
-
- gradient_accumulation_steps: 8
|
| 47 |
-
- total_train_batch_size: 128
|
| 48 |
-
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 49 |
-
- lr_scheduler_type: cosine
|
| 50 |
-
- lr_scheduler_warmup_steps: 40
|
| 51 |
-
- num_epochs: 1.0
|
| 52 |
-
|
| 53 |
-
### Training results
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
### Framework versions
|
| 58 |
-
|
| 59 |
-
- PEFT 0.15.2
|
| 60 |
-
- Transformers 4.52.4
|
| 61 |
-
- Pytorch 2.6.0+cu124
|
| 62 |
-
- Datasets 3.6.0
|
| 63 |
-
- Tokenizers 0.21.1
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model: GreatCaptainNemo/ProLLaMA_Stage_1
|
|
|
|
| 3 |
tags:
|
| 4 |
+
- protein
|
| 5 |
+
- ptm
|
| 6 |
+
- adp-ribosylation
|
| 7 |
+
- lora
|
| 8 |
+
- peft
|
| 9 |
+
library_name: transformers
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# ADPr-LLaMA
|
|
|
|
| 13 |
|
| 14 |
+
LoRA-fine-tuned `GreatCaptainNemo/ProLLaMA_Stage_1` for predicting ADP-ribosylation (ADPr) PTM sites from 21-residue peptide windows. Output format: `Sites=<R5,D12,...>`.
|
| 15 |
|
| 16 |
+
This is a **training-only stub card**. Final metrics (ROC, accuracy, precision, recall, F1, confusion matrix) are filled in by the companion evaluation notebook after running on the held-out test set.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|