Text Generation
Transformers
Safetensors
GGUF
English
llama
supra
chimera
50m
small
open
open-source
cpu
tiny
slm
text-generation-inference
conversational
Instructions to use SupraLabs/Supra-50M-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SupraLabs/Supra-50M-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SupraLabs/Supra-50M-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SupraLabs/Supra-50M-Instruct") model = AutoModelForCausalLM.from_pretrained("SupraLabs/Supra-50M-Instruct") - llama-cpp-python
How to use SupraLabs/Supra-50M-Instruct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SupraLabs/Supra-50M-Instruct", filename="supra-50m-instruct-f16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use SupraLabs/Supra-50M-Instruct with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SupraLabs/Supra-50M-Instruct:F16 # Run inference directly in the terminal: llama-cli -hf SupraLabs/Supra-50M-Instruct:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf SupraLabs/Supra-50M-Instruct:F16 # Run inference directly in the terminal: llama-cli -hf SupraLabs/Supra-50M-Instruct:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf SupraLabs/Supra-50M-Instruct:F16 # Run inference directly in the terminal: ./llama-cli -hf SupraLabs/Supra-50M-Instruct:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf SupraLabs/Supra-50M-Instruct:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf SupraLabs/Supra-50M-Instruct:F16
Use Docker
docker model run hf.co/SupraLabs/Supra-50M-Instruct:F16
- LM Studio
- Jan
- vLLM
How to use SupraLabs/Supra-50M-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SupraLabs/Supra-50M-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra-50M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SupraLabs/Supra-50M-Instruct:F16
- SGLang
How to use SupraLabs/Supra-50M-Instruct 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-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra-50M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra-50M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use SupraLabs/Supra-50M-Instruct with Ollama:
ollama run hf.co/SupraLabs/Supra-50M-Instruct:F16
- Unsloth Studio new
How to use SupraLabs/Supra-50M-Instruct with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SupraLabs/Supra-50M-Instruct to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for SupraLabs/Supra-50M-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SupraLabs/Supra-50M-Instruct to start chatting
- Docker Model Runner
How to use SupraLabs/Supra-50M-Instruct with Docker Model Runner:
docker model run hf.co/SupraLabs/Supra-50M-Instruct:F16
- Lemonade
How to use SupraLabs/Supra-50M-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SupraLabs/Supra-50M-Instruct:F16
Run and chat with the model
lemonade run user.Supra-50M-Instruct-F16
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -132,6 +132,15 @@ if __name__ == "__main__":
|
|
| 132 |
|
| 133 |
## 💬 Sample Outputs
|
| 134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
**User:** What is AI?<br>
|
| 136 |
**Supra-50M Instruct:**:<br>
|
| 137 |
AI refers to the simulation of human intelligence and creativity in machines, which are designed to mimic or surpass human cognition and reasoning. It is the process by which AI systems can solve problems, make predictions, or automate processes that typically require human-level thinking and problem solving. AI technology has been rapidly growing and evolving over time, with many potential benefits for society as a whole. Some of these include:
|
|
@@ -141,7 +150,29 @@ AI refers to the simulation of human intelligence and creativity in machines, wh
|
|
| 141 |
|
| 142 |
<br>
|
| 143 |
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
---
|
| 147 |
|
|
|
|
| 132 |
|
| 133 |
## 💬 Sample Outputs
|
| 134 |
|
| 135 |
+
**This outputs was generated with this samplings:
|
| 136 |
+
<code>temperature=0.7<code>
|
| 137 |
+
<code>top_k=50<code>
|
| 138 |
+
<code>top_p=0.9<code>
|
| 139 |
+
<code>repetition_penalty=1.15<code>**
|
| 140 |
+
|
| 141 |
+
(The model still hallucinates, but can respond a big quantity of questions correctly)
|
| 142 |
+
|
| 143 |
+
|
| 144 |
**User:** What is AI?<br>
|
| 145 |
**Supra-50M Instruct:**:<br>
|
| 146 |
AI refers to the simulation of human intelligence and creativity in machines, which are designed to mimic or surpass human cognition and reasoning. It is the process by which AI systems can solve problems, make predictions, or automate processes that typically require human-level thinking and problem solving. AI technology has been rapidly growing and evolving over time, with many potential benefits for society as a whole. Some of these include:
|
|
|
|
| 150 |
|
| 151 |
<br>
|
| 152 |
|
| 153 |
+
**User:** What is the capital of Japan?<br>
|
| 154 |
+
**Supra-50M Instruct:**:<br>
|
| 155 |
+
The capital of Japan is Tokyo.
|
| 156 |
+
|
| 157 |
+
<br>
|
| 158 |
+
|
| 159 |
+
**User:** Hi!<br>
|
| 160 |
+
**Supra-50M Instruct:**:<br>
|
| 161 |
+
Hello! How can i help you today?
|
| 162 |
+
|
| 163 |
+
<br>
|
| 164 |
+
|
| 165 |
+
**User:** What is the capital of United States?<br>
|
| 166 |
+
**Supra-50M Instruct:**:<br>
|
| 167 |
+
The capital of United States is New York City.
|
| 168 |
+
|
| 169 |
+
<br>
|
| 170 |
+
|
| 171 |
+
**User:** What is the capital of Russia?<br>
|
| 172 |
+
**Supra-50M Instruct:**:<br>
|
| 173 |
+
The capital of Russia is Moscow.
|
| 174 |
+
|
| 175 |
+
<br>
|
| 176 |
|
| 177 |
---
|
| 178 |
|