Text Generation
Transformers
Safetensors
GGUF
English
qwen3
code
100m
conversational
text-generation-inference
Instructions to use ViorikaAI-org/CalmaCatCoder-Next-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViorikaAI-org/CalmaCatCoder-Next-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ViorikaAI-org/CalmaCatCoder-Next-mini") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ViorikaAI-org/CalmaCatCoder-Next-mini") model = AutoModelForCausalLM.from_pretrained("ViorikaAI-org/CalmaCatCoder-Next-mini", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ViorikaAI-org/CalmaCatCoder-Next-mini 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 ViorikaAI-org/CalmaCatCoder-Next-mini:F16 # Run inference directly in the terminal: llama cli -hf ViorikaAI-org/CalmaCatCoder-Next-mini:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ViorikaAI-org/CalmaCatCoder-Next-mini:F16 # Run inference directly in the terminal: llama cli -hf ViorikaAI-org/CalmaCatCoder-Next-mini:F16
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 ViorikaAI-org/CalmaCatCoder-Next-mini:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf ViorikaAI-org/CalmaCatCoder-Next-mini:F16
Use Docker
docker model run hf.co/ViorikaAI-org/CalmaCatCoder-Next-mini:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use ViorikaAI-org/CalmaCatCoder-Next-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ViorikaAI-org/CalmaCatCoder-Next-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ViorikaAI-org/CalmaCatCoder-Next-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ViorikaAI-org/CalmaCatCoder-Next-mini:F16
- SGLang
How to use ViorikaAI-org/CalmaCatCoder-Next-mini 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 "ViorikaAI-org/CalmaCatCoder-Next-mini" \ --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": "ViorikaAI-org/CalmaCatCoder-Next-mini", "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 "ViorikaAI-org/CalmaCatCoder-Next-mini" \ --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": "ViorikaAI-org/CalmaCatCoder-Next-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use ViorikaAI-org/CalmaCatCoder-Next-mini with Ollama:
ollama run hf.co/ViorikaAI-org/CalmaCatCoder-Next-mini:F16
- Unsloth Desktop
- Docker Model Runner
How to use ViorikaAI-org/CalmaCatCoder-Next-mini with Docker Model Runner:
docker model run hf.co/ViorikaAI-org/CalmaCatCoder-Next-mini:F16
- Lemonade
How to use ViorikaAI-org/CalmaCatCoder-Next-mini with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ViorikaAI-org/CalmaCatCoder-Next-mini:F16
Run and chat with the model
lemonade run user.CalmaCatCoder-Next-mini-F16
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -89,27 +89,6 @@ print(tok.decode(out[0, inputs["input_ids"].shape[1]:]).replace("<|im_end|>", ""
|
|
| 89 |
Sampling defaults live in `generation_config.json` (temperature 0.7, top-k 40). Keep prompt + answer under
|
| 90 |
1024 bytes; the model never saw longer sequences.
|
| 91 |
|
| 92 |
-
### GGUF / llama.cpp
|
| 93 |
-
|
| 94 |
-
The tokenizer has no BPE merges and a pre-tokenizer unknown to the stock converter, so
|
| 95 |
-
`convert_hf_to_gguf.py` fails on it. The `make_gguf.py` wrapper from the code repository patches this
|
| 96 |
-
at conversion time without modifying llama.cpp (details in its header):
|
| 97 |
-
|
| 98 |
-
```bash
|
| 99 |
-
git clone https://github.com/ggml-org/llama.cpp
|
| 100 |
-
python make_gguf.py llama.cpp CalmaCatCoder-Next-96M calmacat-96m-f16.gguf f16 # or q8_0
|
| 101 |
-
```
|
| 102 |
-
|
| 103 |
-
Because `<|im_end|>` is plain text, llama.cpp does not stop on it by itself. Save the ChatML prompt to a file
|
| 104 |
-
and use a reverse prompt:
|
| 105 |
-
|
| 106 |
-
```bash
|
| 107 |
-
llama-completion -m calmacat-96m-f16.gguf -no-cnv --no-escape -f prompt.txt -r "<|im_end|>" -n 300 --temp 0.7 --top-k 40
|
| 108 |
-
```
|
| 109 |
-
|
| 110 |
-
A warning `special_eos_id is not in special_eog_ids` is expected: the model has no EOS token.
|
| 111 |
-
Prefer f16/bf16 or q8_0; this model is so small that aggressive quantization will likely hurt it.
|
| 112 |
-
|
| 113 |
## How it was trained
|
| 114 |
|
| 115 |
All of it ran on a single RTX 5060 Ti (16 GB) under Windows with a PyTorch nightly build.
|
|
|
|
| 89 |
Sampling defaults live in `generation_config.json` (temperature 0.7, top-k 40). Keep prompt + answer under
|
| 90 |
1024 bytes; the model never saw longer sequences.
|
| 91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
## How it was trained
|
| 93 |
|
| 94 |
All of it ran on a single RTX 5060 Ti (16 GB) under Windows with a PyTorch nightly build.
|