BEE-spoke-data/bees-internal
Viewer • Updated • 4.08k • 10 • 7
How to use BEE-spoke-data/smol_llama-220M-bees-internal with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="BEE-spoke-data/smol_llama-220M-bees-internal") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("BEE-spoke-data/smol_llama-220M-bees-internal")
model = AutoModelForCausalLM.from_pretrained("BEE-spoke-data/smol_llama-220M-bees-internal")How to use BEE-spoke-data/smol_llama-220M-bees-internal with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "BEE-spoke-data/smol_llama-220M-bees-internal"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "BEE-spoke-data/smol_llama-220M-bees-internal",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/BEE-spoke-data/smol_llama-220M-bees-internal
How to use BEE-spoke-data/smol_llama-220M-bees-internal with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "BEE-spoke-data/smol_llama-220M-bees-internal" \
--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": "BEE-spoke-data/smol_llama-220M-bees-internal",
"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 "BEE-spoke-data/smol_llama-220M-bees-internal" \
--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": "BEE-spoke-data/smol_llama-220M-bees-internal",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use BEE-spoke-data/smol_llama-220M-bees-internal with Docker Model Runner:
docker model run hf.co/BEE-spoke-data/smol_llama-220M-bees-internal
This model is a fine-tuned version of BEE-spoke-data/smol_llama-220M-GQA on the None 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 |
|---|---|---|---|---|
| 3.0959 | 0.1 | 50 | 2.9671 | 0.4245 |
| 2.9975 | 0.19 | 100 | 2.8691 | 0.4371 |
| 2.8938 | 0.29 | 150 | 2.8271 | 0.4419 |
| 2.9027 | 0.39 | 200 | 2.7973 | 0.4457 |
| 2.8983 | 0.49 | 250 | 2.7719 | 0.4489 |
| 2.8789 | 0.58 | 300 | 2.7519 | 0.4515 |
| 2.8672 | 0.68 | 350 | 2.7366 | 0.4535 |
| 2.8369 | 0.78 | 400 | 2.7230 | 0.4558 |
| 2.8271 | 0.88 | 450 | 2.7118 | 0.4569 |
| 2.7775 | 0.97 | 500 | 2.7034 | 0.4587 |
| 2.671 | 1.07 | 550 | 2.6996 | 0.4592 |
| 2.695 | 1.17 | 600 | 2.6965 | 0.4598 |
| 2.6962 | 1.27 | 650 | 2.6934 | 0.4601 |
| 2.6034 | 1.36 | 700 | 2.6916 | 0.4605 |
| 2.716 | 1.46 | 750 | 2.6901 | 0.4609 |
| 2.6968 | 1.56 | 800 | 2.6896 | 0.4608 |
| 2.6626 | 1.66 | 850 | 2.6893 | 0.4609 |
| 2.6881 | 1.75 | 900 | 2.6891 | 0.4610 |
| 2.7339 | 1.85 | 950 | 2.6891 | 0.4610 |
| 2.6729 | 1.95 | 1000 | 2.6892 | 0.4610 |