pszemraj/simple_wikipedia_LM
Viewer • Updated • 476k • 163 • 13
How to use pszemraj/griffin-v0.01-c3t-8layer-simplewiki with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="pszemraj/griffin-v0.01-c3t-8layer-simplewiki") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("pszemraj/griffin-v0.01-c3t-8layer-simplewiki")
model = AutoModelForCausalLM.from_pretrained("pszemraj/griffin-v0.01-c3t-8layer-simplewiki")How to use pszemraj/griffin-v0.01-c3t-8layer-simplewiki with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "pszemraj/griffin-v0.01-c3t-8layer-simplewiki"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "pszemraj/griffin-v0.01-c3t-8layer-simplewiki",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/pszemraj/griffin-v0.01-c3t-8layer-simplewiki
How to use pszemraj/griffin-v0.01-c3t-8layer-simplewiki with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "pszemraj/griffin-v0.01-c3t-8layer-simplewiki" \
--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": "pszemraj/griffin-v0.01-c3t-8layer-simplewiki",
"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 "pszemraj/griffin-v0.01-c3t-8layer-simplewiki" \
--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": "pszemraj/griffin-v0.01-c3t-8layer-simplewiki",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use pszemraj/griffin-v0.01-c3t-8layer-simplewiki with Docker Model Runner:
docker model run hf.co/pszemraj/griffin-v0.01-c3t-8layer-simplewiki
This model is a fine-tuned version of ./griffin-1024-c3t-8layer on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 13.2525 | 0.2548 | 100 | 11.9768 | 0.0131 |
| 8.8873 | 0.5095 | 200 | 8.0127 | 0.0357 |
| 7.2457 | 0.7643 | 300 | 6.4508 | 0.0512 |
| 6.3152 | 1.0190 | 400 | 5.6163 | 0.0460 |
| 5.5586 | 1.2738 | 500 | 4.7645 | 0.3650 |
| 5.2936 | 1.5285 | 600 | 4.3919 | 0.3934 |
| 4.8839 | 1.7833 | 700 | 4.1928 | 0.4084 |