Text Generation
Transformers
Safetensors
English
llama
supra
chimera
50m
small
open
open-source
cpu
tiny
slm
text-generation-inference
Instructions to use SupraLabs/Supra-50M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SupraLabs/Supra-50M-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SupraLabs/Supra-50M-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SupraLabs/Supra-50M-Base") model = AutoModelForCausalLM.from_pretrained("SupraLabs/Supra-50M-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SupraLabs/Supra-50M-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SupraLabs/Supra-50M-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra-50M-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SupraLabs/Supra-50M-Base
- SGLang
How to use SupraLabs/Supra-50M-Base 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 "SupraLabs/Supra-50M-Base" \ --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": "SupraLabs/Supra-50M-Base", "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 "SupraLabs/Supra-50M-Base" \ --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": "SupraLabs/Supra-50M-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SupraLabs/Supra-50M-Base with Docker Model Runner:
docker model run hf.co/SupraLabs/Supra-50M-Base
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,6 +36,35 @@ tags:
|
|
| 36 |
| **PIQA** (logic) | 62.2% | 63.0% | 67.3% | **69.75%** |
|
| 37 |
| **HellaSwag** (context) | 31.8% | 29.5% | 42.0% | **46.71%** |
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |

|
| 40 |
|
| 41 |

|
|
|
|
| 36 |
| **PIQA** (logic) | 62.2% | 63.0% | 67.3% | **69.75%** |
|
| 37 |
| **HellaSwag** (context) | 31.8% | 29.5% | 42.0% | **46.71%** |
|
| 38 |
|
| 39 |
+
|
| 40 |
+
| Task | Metric | Value |
|
| 41 |
+
| :--- | :--- | :---: |
|
| 42 |
+
| arc_easy | acc,none | 0.5185 |
|
| 43 |
+
| arc_easy | acc_stderr,none | 0.0103 |
|
| 44 |
+
| arc_easy | acc_norm,none | 0.4600 |
|
| 45 |
+
| arc_easy | acc_norm_stderr,none | 0.0102 |
|
| 46 |
+
| arc_challenge | acc,none | 0.2159 |
|
| 47 |
+
| arc_challenge | acc_stderr,none | 0.0120 |
|
| 48 |
+
| arc_challenge | acc_norm,none | 0.2517 |
|
| 49 |
+
| arc_challenge | acc_norm_stderr,none | 0.0127 |
|
| 50 |
+
| hellaswag | acc,none | 0.2903 |
|
| 51 |
+
| hellaswag | acc_stderr,none | 0.0045 |
|
| 52 |
+
| hellaswag | acc_norm,none | 0.3172 |
|
| 53 |
+
| hellaswag | acc_norm_stderr,none | 0.0046 |
|
| 54 |
+
| winogrande | acc,none | 0.5154 |
|
| 55 |
+
| winogrande | acc_stderr,none | 0.0140 |
|
| 56 |
+
| piqa | acc,none | 0.6251 |
|
| 57 |
+
| piqa | acc_stderr,none | 0.0113 |
|
| 58 |
+
| piqa | acc_norm,none | 0.6219 |
|
| 59 |
+
| piqa | acc_norm_stderr,none | 0.0113 |
|
| 60 |
+
| openbookqa | acc,none | 0.1860 |
|
| 61 |
+
| openbookqa | acc_stderr,none | 0.0174 |
|
| 62 |
+
| openbookqa | acc_norm,none | 0.3080 |
|
| 63 |
+
| openbookqa | acc_norm_stderr,none | 0.0207 |
|
| 64 |
+
| boolq | acc,none | 0.5303 |
|
| 65 |
+
| boolq | acc_stderr,none | 0.0087 |
|
| 66 |
+
|
| 67 |
+
|
| 68 |

|
| 69 |
|
| 70 |

|