Text Generation
Transformers
Safetensors
GGUF
kimi_k31_superexpert
2.8t
4bit
aw-secd
causal-lm
code
colab
conversational
custom_code
k3.1
kaggle
kimi
laptop-runnable
llama.cpp
long-context
math
mixture-of-experts
Mixture of Experts
moonshot
nlp
ollama
on-device
quantization
reasoning
sub-10gb
super-expert
svd
zero-drift
8-bit precision
Instructions to use Infinix-io/llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Infinix-io/llm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Infinix-io/llm", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Infinix-io/llm", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Infinix-io/llm with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Infinix-io/llm:Q4_K_M # Run inference directly in the terminal: llama cli -hf Infinix-io/llm:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Infinix-io/llm:Q4_K_M # Run inference directly in the terminal: llama cli -hf Infinix-io/llm:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Infinix-io/llm:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Infinix-io/llm:Q4_K_M
Use Docker
docker model run hf.co/Infinix-io/llm:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Infinix-io/llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Infinix-io/llm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Infinix-io/llm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Infinix-io/llm:Q4_K_M
- SGLang
How to use Infinix-io/llm 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 "Infinix-io/llm" \ --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": "Infinix-io/llm", "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 "Infinix-io/llm" \ --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": "Infinix-io/llm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Infinix-io/llm with Ollama:
ollama run hf.co/Infinix-io/llm:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Infinix-io/llm with Docker Model Runner:
docker model run hf.co/Infinix-io/llm:Q4_K_M
- Lemonade
How to use Infinix-io/llm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Infinix-io/llm:Q4_K_M
Run and chat with the model
lemonade run user.llm-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download config.json from Infinix-io/llm: direct link, hf CLI and curl.
- Browser
- Download file 966 Bytes
-
https://huggingface.co/Infinix-io/llm/resolve/main/config.json
- Command line
-
hf download hf://Infinix-io/llm/config.json
-
curl -L -o config.json https://huggingface.co/Infinix-io/llm/resolve/main/config.json
966 Bytes
| { | |
| "architectures": [ | |
| "KimiK31SuperExpertForCausalLM" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_kimi_k31_superexpert.KimiK31SuperExpertConfig", | |
| "AutoModelForCausalLM": "modeling_kimi_k31_superexpert.KimiK31SuperExpertForCausalLM" | |
| }, | |
| "bos_token_id": 1, | |
| "compression_method": "AW-SECD", | |
| "compressed_footprint_gb": 12.0, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 7168, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 18432, | |
| "max_position_embeddings": 1048576, | |
| "model_type": "kimi_k31_superexpert", | |
| "moe_intermediate_size": 3072, | |
| "num_attention_heads": 96, | |
| "num_hidden_layers": 36, | |
| "num_key_value_heads": 96, | |
| "pad_token_id": 0, | |
| "retained_intelligence_ratio": 0.948, | |
| "rms_norm_eps": 1e-05, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.45.0", | |
| "use_cache": true, | |
| "vocab_size": 163840, | |
| "_name_or_path": "shashanth-27xA9/Kimi-K3.1-Pro-SuperExpert-12GB" | |
| } |