defunct-datasets/eli5
Updated • 28.8k • 52
How to use stillerman/jason-expert-eli5-0.5k-same-ds with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="stillerman/jason-expert-eli5-0.5k-same-ds") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("stillerman/jason-expert-eli5-0.5k-same-ds")
model = AutoModelForCausalLM.from_pretrained("stillerman/jason-expert-eli5-0.5k-same-ds")How to use stillerman/jason-expert-eli5-0.5k-same-ds with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "stillerman/jason-expert-eli5-0.5k-same-ds"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "stillerman/jason-expert-eli5-0.5k-same-ds",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/stillerman/jason-expert-eli5-0.5k-same-ds
How to use stillerman/jason-expert-eli5-0.5k-same-ds with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "stillerman/jason-expert-eli5-0.5k-same-ds" \
--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": "stillerman/jason-expert-eli5-0.5k-same-ds",
"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 "stillerman/jason-expert-eli5-0.5k-same-ds" \
--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": "stillerman/jason-expert-eli5-0.5k-same-ds",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use stillerman/jason-expert-eli5-0.5k-same-ds with Docker Model Runner:
docker model run hf.co/stillerman/jason-expert-eli5-0.5k-same-ds
This model is a fine-tuned version of EleutherAI/pythia-1b-deduped on the eli5 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 | Accuracy |
|---|---|---|---|---|
| 4.3186 | 5.93 | 200 | 4.3850 | 0.1399 |
| 2.7653 | 11.85 | 400 | 2.7820 | 0.4294 |
https://wandb.ai/ontocord/jason-test-pythia-1b-deduped-layer-test-eli5/runs/eecbe79c