Text Generation
Transformers
Safetensors
English
llama
tiny
small-language-model
pretrained
wisp
text-generation-inference
Instructions to use DedeProGames/Wisp-15M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DedeProGames/Wisp-15M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DedeProGames/Wisp-15M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DedeProGames/Wisp-15M") model = AutoModelForCausalLM.from_pretrained("DedeProGames/Wisp-15M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DedeProGames/Wisp-15M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DedeProGames/Wisp-15M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DedeProGames/Wisp-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DedeProGames/Wisp-15M
- SGLang
How to use DedeProGames/Wisp-15M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DedeProGames/Wisp-15M" \ --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": "DedeProGames/Wisp-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
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 "DedeProGames/Wisp-15M" \ --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": "DedeProGames/Wisp-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DedeProGames/Wisp-15M with Docker Model Runner:
docker model run hf.co/DedeProGames/Wisp-15M
Model card
Browse files
README.md
CHANGED
|
@@ -90,17 +90,19 @@ held-out loss is 2.777.
|
|
| 90 |
|
| 91 |
### Zero-shot benchmarks
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
| 96 |
-
|
|
| 97 |
-
|
|
| 98 |
-
|
|
| 99 |
-
|
|
| 100 |
-
|
|
| 101 |
-
|
|
| 102 |
-
|
|
| 103 |
-
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
Greedy samples right after training:
|
| 106 |
- `'The meaning of life is that the person who lives in a certain place will be able to live with his or her own needs. The person who lives in an area where he/she has no need for food and drinks, can live without food.\nIn addition'`
|
|
|
|
| 90 |
|
| 91 |
### Zero-shot benchmarks
|
| 92 |
|
| 93 |
+
lm-evaluation-harness, zero-shot; acc_norm for HellaSwag/ARC/PIQA/OpenBookQA/SciQ, acc for WinoGrande/LAMBADA. Pythia-70M (70M params, 300B tokens of the Pile) is shown as a reference from EleutherAI's published evaluations.
|
| 94 |
+
|
| 95 |
+
| Task | Wisp-15M | Pythia-70M | Random |
|
| 96 |
+
|---|---|---|---|
|
| 97 |
+
| HellaSwag | 28.0 | — | 25.0 |
|
| 98 |
+
| ARC-Easy | 35.9 | 35.0 | 25.0 |
|
| 99 |
+
| ARC-Challenge | 22.0 | 22.1 | 25.0 |
|
| 100 |
+
| PIQA | 57.5 | 59.1 | 50.0 |
|
| 101 |
+
| WinoGrande | 51.1 | 52.8 | 50.0 |
|
| 102 |
+
| OpenBookQA | 26.2 | — | 25.0 |
|
| 103 |
+
| SciQ | 63.0 | 55.2 | 25.0 |
|
| 104 |
+
| LAMBADA | 21.3 | 18.5 | 0.0 |
|
| 105 |
+
| LAMBADA ppl | 112.7 | 142.4 | — |
|
| 106 |
|
| 107 |
Greedy samples right after training:
|
| 108 |
- `'The meaning of life is that the person who lives in a certain place will be able to live with his or her own needs. The person who lives in an area where he/she has no need for food and drinks, can live without food.\nIn addition'`
|