Text Generation
Transformers
Safetensors
English
llama
math
reasoning
mathematics
causal-lm
text-generation-inference
Instructions to use KiteFishAI/Minnow-Math-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KiteFishAI/Minnow-Math-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="KiteFishAI/Minnow-Math-2B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("KiteFishAI/Minnow-Math-2B") model = AutoModelForCausalLM.from_pretrained("KiteFishAI/Minnow-Math-2B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use KiteFishAI/Minnow-Math-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KiteFishAI/Minnow-Math-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KiteFishAI/Minnow-Math-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/KiteFishAI/Minnow-Math-2B
- SGLang
How to use KiteFishAI/Minnow-Math-2B 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 "KiteFishAI/Minnow-Math-2B" \ --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": "KiteFishAI/Minnow-Math-2B", "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 "KiteFishAI/Minnow-Math-2B" \ --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": "KiteFishAI/Minnow-Math-2B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use KiteFishAI/Minnow-Math-2B with Docker Model Runner:
docker model run hf.co/KiteFishAI/Minnow-Math-2B
README.md updated
Browse files
README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🐟 Math-A1-2B
|
| 2 |
|
| 3 |
**Math-A1-2B** is a 2B-parameter language model by **Kitefish**, focused on mathematical reasoning, symbolic understanding, and structured problem solving.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- math
|
| 7 |
+
- reasoning
|
| 8 |
+
- mathematics
|
| 9 |
+
- causal-lm
|
| 10 |
+
- text-generation
|
| 11 |
+
library_name: transformers
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
+
model_name: Math-A1-2B
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
# 🐟 Math-A1-2B
|
| 17 |
|
| 18 |
**Math-A1-2B** is a 2B-parameter language model by **Kitefish**, focused on mathematical reasoning, symbolic understanding, and structured problem solving.
|