lamini/lamini_docs
Viewer • Updated • 1.4k • 1.04k • 23
How to use herMaster/pythia70M-finetuned-on-lamini-docs with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="herMaster/pythia70M-finetuned-on-lamini-docs") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("herMaster/pythia70M-finetuned-on-lamini-docs")
model = AutoModelForCausalLM.from_pretrained("herMaster/pythia70M-finetuned-on-lamini-docs")How to use herMaster/pythia70M-finetuned-on-lamini-docs with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "herMaster/pythia70M-finetuned-on-lamini-docs"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "herMaster/pythia70M-finetuned-on-lamini-docs",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/herMaster/pythia70M-finetuned-on-lamini-docs
How to use herMaster/pythia70M-finetuned-on-lamini-docs with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "herMaster/pythia70M-finetuned-on-lamini-docs" \
--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": "herMaster/pythia70M-finetuned-on-lamini-docs",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "herMaster/pythia70M-finetuned-on-lamini-docs" \
--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": "herMaster/pythia70M-finetuned-on-lamini-docs",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use herMaster/pythia70M-finetuned-on-lamini-docs with Docker Model Runner:
docker model run hf.co/herMaster/pythia70M-finetuned-on-lamini-docs
This model is a fine-tuned version of EleutherAI/pythia-70m on lamini/lamini_docs dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.3194 | 0.16 | 50 | 2.4776 |
| 2.3198 | 0.32 | 100 | 2.3780 |
| 2.16 | 0.48 | 150 | 2.2905 |
| 2.2156 | 0.63 | 200 | 2.2450 |
| 2.3342 | 0.79 | 250 | 2.1934 |
| 2.7634 | 0.95 | 300 | 2.1748 |
| 2.4963 | 1.11 | 350 | 2.1500 |
| 2.1493 | 1.27 | 400 | 2.1413 |
| 1.8731 | 1.43 | 450 | 2.1200 |
| 2.0132 | 1.59 | 500 | 2.1030 |
| 1.9606 | 1.75 | 550 | 2.0848 |
| 1.37 | 1.9 | 600 | 2.0659 |
| 1.7681 | 2.06 | 650 | 2.0744 |
| 1.8926 | 2.22 | 700 | 2.0779 |
| 1.2409 | 2.38 | 750 | 2.0683 |
| 1.489 | 2.54 | 800 | 2.0616 |
| 1.5143 | 2.7 | 850 | 2.0604 |
| 1.3736 | 2.86 | 900 | 2.0582 |
Base model
EleutherAI/pythia-70m