Instructions to use vidyasss/pharma_tinyllama_instruction_lora_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vidyasss/pharma_tinyllama_instruction_lora_output with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T") model = PeftModel.from_pretrained(base_model, "vidyasss/pharma_tinyllama_instruction_lora_output") - Transformers
How to use vidyasss/pharma_tinyllama_instruction_lora_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vidyasss/pharma_tinyllama_instruction_lora_output")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vidyasss/pharma_tinyllama_instruction_lora_output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vidyasss/pharma_tinyllama_instruction_lora_output with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vidyasss/pharma_tinyllama_instruction_lora_output" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vidyasss/pharma_tinyllama_instruction_lora_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vidyasss/pharma_tinyllama_instruction_lora_output
- SGLang
How to use vidyasss/pharma_tinyllama_instruction_lora_output 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 "vidyasss/pharma_tinyllama_instruction_lora_output" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vidyasss/pharma_tinyllama_instruction_lora_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "vidyasss/pharma_tinyllama_instruction_lora_output" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vidyasss/pharma_tinyllama_instruction_lora_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vidyasss/pharma_tinyllama_instruction_lora_output with Docker Model Runner:
docker model run hf.co/vidyasss/pharma_tinyllama_instruction_lora_output
pharma_tinyllama_instruction_lora_output
This model is a fine-tuned version of TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.5982
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 1
- eval_batch_size: 1
- seed: 42
- gradient_accumulation_steps: 8
- total_train_batch_size: 8
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 5
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.0911 | 0.2 | 1 | 2.3296 |
| 2.1913 | 0.4 | 2 | 2.3116 |
| 2.5370 | 0.6 | 3 | 2.2733 |
| 2.1557 | 0.8 | 4 | 2.2185 |
| 2.2110 | 1.0 | 5 | 2.1482 |
| 2.0857 | 1.2 | 6 | 2.0684 |
| 1.8033 | 1.4 | 7 | 1.9973 |
| 1.8075 | 1.6 | 8 | 1.9298 |
| 1.8884 | 1.8 | 9 | 1.8642 |
| 1.9320 | 2.0 | 10 | 1.8064 |
| 2.0198 | 2.2 | 11 | 1.7661 |
| 1.4786 | 2.4 | 12 | 1.7384 |
| 1.4976 | 2.6 | 13 | 1.7150 |
| 1.5867 | 2.8 | 14 | 1.6951 |
| 1.3980 | 3.0 | 15 | 1.6764 |
| 1.6357 | 3.2 | 16 | 1.6601 |
| 1.3667 | 3.4 | 17 | 1.6452 |
| 1.3250 | 3.6 | 18 | 1.6320 |
| 1.4221 | 3.8 | 19 | 1.6213 |
| 1.4839 | 4.0 | 20 | 1.6133 |
| 1.5301 | 4.2 | 21 | 1.6078 |
| 1.4950 | 4.4 | 22 | 1.6038 |
| 1.2501 | 4.6 | 23 | 1.6009 |
| 1.2645 | 4.8 | 24 | 1.5993 |
| 1.3319 | 5.0 | 25 | 1.5982 |
Framework versions
- PEFT 0.19.1
- Transformers 5.10.2
- Pytorch 2.11.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 5