Text Generation
Transformers
Safetensors
PEFT
English
lora
qlora
math
reasoning
gsm8k
causal-lm
conversational
Instructions to use Siddharth466/tinyllama-gsm8k-math-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Siddharth466/tinyllama-gsm8k-math-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Siddharth466/tinyllama-gsm8k-math-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Siddharth466/tinyllama-gsm8k-math-lora", dtype="auto") - PEFT
How to use Siddharth466/tinyllama-gsm8k-math-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Siddharth466/tinyllama-gsm8k-math-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Siddharth466/tinyllama-gsm8k-math-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Siddharth466/tinyllama-gsm8k-math-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Siddharth466/tinyllama-gsm8k-math-lora
- SGLang
How to use Siddharth466/tinyllama-gsm8k-math-lora 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 "Siddharth466/tinyllama-gsm8k-math-lora" \ --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": "Siddharth466/tinyllama-gsm8k-math-lora", "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 "Siddharth466/tinyllama-gsm8k-math-lora" \ --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": "Siddharth466/tinyllama-gsm8k-math-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Siddharth466/tinyllama-gsm8k-math-lora with Docker Model Runner:
docker model run hf.co/Siddharth466/tinyllama-gsm8k-math-lora
Update README.md
Browse files
README.md
CHANGED
|
@@ -54,12 +54,7 @@ Evaluating Fine-Tuned (Merged)...
|
|
| 54 |
100%|ββββββββββ| 165/165 [12:40<00:00, 4.61s/it]
|
| 55 |
Fine-Tuned (Merged) Accuracy: 1.90%
|
| 56 |
|
| 57 |
-
|
| 58 |
-
GSM8K FINAL RESULTS
|
| 59 |
-
==============================
|
| 60 |
-
Base Model Accuracy: 1.29%
|
| 61 |
-
Fine-Tuned Model Accuracy: 1.90%
|
| 62 |
-
==============================
|
| 63 |
|
| 64 |
Training was performed using:
|
| 65 |
- Transformers
|
|
|
|
| 54 |
100%|ββββββββββ| 165/165 [12:40<00:00, 4.61s/it]
|
| 55 |
Fine-Tuned (Merged) Accuracy: 1.90%
|
| 56 |
|
| 57 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
Training was performed using:
|
| 60 |
- Transformers
|