community-datasets/proto_qa
Viewer • Updated • 9.87k • 207 • 2
How to use ajain6/my_awesome_generation_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ajain6/my_awesome_generation_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ajain6/my_awesome_generation_model")
model = AutoModelForCausalLM.from_pretrained("ajain6/my_awesome_generation_model")How to use ajain6/my_awesome_generation_model with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ajain6/my_awesome_generation_model"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ajain6/my_awesome_generation_model",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ajain6/my_awesome_generation_model
How to use ajain6/my_awesome_generation_model with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ajain6/my_awesome_generation_model" \
--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": "ajain6/my_awesome_generation_model",
"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 "ajain6/my_awesome_generation_model" \
--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": "ajain6/my_awesome_generation_model",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ajain6/my_awesome_generation_model with Docker Model Runner:
docker model run hf.co/ajain6/my_awesome_generation_model
This model is a fine-tuned version of gpt2 on the proto_qa 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.6643 | 0.32 | 20 | 2.8379 |
| 2.942 | 0.65 | 40 | 2.6090 |
| 2.7742 | 0.97 | 60 | 2.5426 |
| 2.6329 | 1.29 | 80 | 2.5053 |
| 2.5239 | 1.61 | 100 | 2.4791 |
| 2.5101 | 1.94 | 120 | 2.4521 |
| 2.4416 | 2.26 | 140 | 2.4436 |
| 2.3676 | 2.58 | 160 | 2.4405 |
| 2.3664 | 2.9 | 180 | 2.4280 |
| 2.2977 | 3.23 | 200 | 2.4291 |
| 2.2861 | 3.55 | 220 | 2.4216 |
| 2.2695 | 3.87 | 240 | 2.4213 |
| 2.1973 | 4.19 | 260 | 2.4208 |
| 2.1874 | 4.52 | 280 | 2.4216 |
| 2.2308 | 4.84 | 300 | 2.4229 |
| 2.18 | 5.16 | 320 | 2.4203 |
| 2.1711 | 5.48 | 340 | 2.4222 |
| 2.1402 | 5.81 | 360 | 2.4208 |
| 2.1064 | 6.13 | 380 | 2.4222 |
| 2.1189 | 6.45 | 400 | 2.4224 |
| 2.0666 | 6.77 | 420 | 2.4228 |
| 2.1272 | 7.1 | 440 | 2.4226 |
| 2.0448 | 7.42 | 460 | 2.4226 |
| 2.123 | 7.74 | 480 | 2.4234 |
Base model
openai-community/gpt2