Text Generation
Transformers
Safetensors
PyTorch
Chinese
English
kirim
causal-lm
math
reasoning
tool-calling
function-calling
bilingual
code
symbolic-solver
llm
custom_code
4-bit precision
gptq
Instructions to use Kirim-ai/Kirim-1-Math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kirim-ai/Kirim-1-Math with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Kirim-ai/Kirim-1-Math", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Kirim-ai/Kirim-1-Math", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kirim-ai/Kirim-1-Math with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kirim-ai/Kirim-1-Math" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kirim-ai/Kirim-1-Math", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kirim-ai/Kirim-1-Math
- SGLang
How to use Kirim-ai/Kirim-1-Math 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 "Kirim-ai/Kirim-1-Math" \ --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": "Kirim-ai/Kirim-1-Math", "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 "Kirim-ai/Kirim-1-Math" \ --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": "Kirim-ai/Kirim-1-Math", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kirim-ai/Kirim-1-Math with Docker Model Runner:
docker model run hf.co/Kirim-ai/Kirim-1-Math
Commit History
-
Update README.md
Song YiVerified signature52f4dc7 -
Update README.md
Song YiVerified signature92963e6 -
Upload 10 files
Song YiVerified signature8195481 -
Upload 10 files
Song YiVerified signature7fd4abf -
Upload 10 files
Song YiVerified signature9f71df5
-
Upload 10 files
Song YiVerified signaturecf5753e -
Upload 10 files
Song YiVerified signature0473f68
-
Upload 10 files
Song YiVerified signatureae088d4 -
Update README.md
Song YiVerified signature658de0f -
Upload 10 files
Song YiVerified signatureb117b1f -
Upload 10 files
Song YiVerified signaturec449648 -
Upload model.safetensors.index.json
Song YiVerified signaturefbcbb61 -
Update README.md
Song YiVerified signaturefc2a62c -
Update README.md
Song YiVerified signaturea54a7ae -
Create setup.py
Song YiVerified signature97a2be7 -
Create evaluate.py
Song YiVerified signaturee00d2ee -
Create MODEL_CARD.md
Song YiVerified signatured5d55c9
-
Create api_server.py
Song YiVerified signatureca8c2ab -
Create benchmark_results.json
Song YiVerified signatureca016db -
Create training_config.json
Song YiVerified signature0d6275e -
Create LICENSE_CH.md
Song YiVerified signature808e8db -
Create requirements.txt
Song YiVerified signature59b6111 -
Update LICENSE
Song YiVerified signature7d3c82c -
Create LICENSE
Song YiVerified signatured38f86f
-
Create inference_math.py
Song YiVerified signaturec913ed4 -
Create tools_config.json
Song YiVerified signature9e0ba17
-
Create generation_config.json
Song YiVerified signaturefa7298a -
Update README.md
Song YiVerified signature617bc7a -
Create config.json
Song YiVerified signature2d818c3 -
initial commit
Song YiVerified signaturecda8dd3