Text Generation
Transformers
Safetensors
GGUF
English
qwen2
code
280m
conversational
text-generation-inference
Instructions to use ViorikaAI-org/CalmaCatCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViorikaAI-org/CalmaCatCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ViorikaAI-org/CalmaCatCoder") 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") model = AutoModelForCausalLM.from_pretrained("ViorikaAI-org/CalmaCatCoder", 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
- vLLM
How to use ViorikaAI-org/CalmaCatCoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ViorikaAI-org/CalmaCatCoder" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ViorikaAI-org/CalmaCatCoder
- SGLang
How to use ViorikaAI-org/CalmaCatCoder 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ViorikaAI-org/CalmaCatCoder with Docker Model Runner:
docker model run hf.co/ViorikaAI-org/CalmaCatCoder
Update LICENSE
Browse files
LICENSE
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CalmaCat Public License (CCPL-1.0)
|
| 2 |
+
Model: CalmaCatCoder-280M
|
| 3 |
+
Copyright (c) 2026 CalmaCat / Dmitriy Zemskov (ViorikaAI)
|
| 4 |
+
|
| 5 |
+
==============================================================================
|
| 6 |
+
ENGLISH VERSION (PRIMARY)
|
| 7 |
+
==============================================================================
|
| 8 |
+
|
| 9 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 10 |
+
of this model and associated files (the "Model"), to use, copy, modify, merge,
|
| 11 |
+
publish, distribute, sublicense, and/or sell copies of the Model, subject to
|
| 12 |
+
the following conditions:
|
| 13 |
+
|
| 14 |
+
1. ATTRIBUTION:
|
| 15 |
+
If you use, fine-tune, convert, or redistribute this Model or derivative weights,
|
| 16 |
+
please retain the original author credit (ViorikaAI).
|
| 17 |
+
|
| 18 |
+
2. DISCLAIMER OF WARRANTY:
|
| 19 |
+
THE MODEL IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 20 |
+
IMPLIED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
| 21 |
+
OTHER LIABILITY, ARISING FROM, OUT OF OR IN CONNECTION WITH, THE SOFTWARE
|
| 22 |
+
OR THE USE OF THE MODEL.
|
| 23 |
+
|
| 24 |
+
3. FREEDOM OF USE:
|
| 25 |
+
You are free to build on top of this model, create GGUF/EXL2/AWQ quantizations,
|
| 26 |
+
or embed it into any open-source or commercial projects.
|
| 27 |
+
|
| 28 |
+
==============================================================================
|
| 29 |
+
ВЕРСИЯ НА РУССКОМ ЯЗЫКЕ (ПЕРЕВОД)
|
| 30 |
+
==============================================================================
|
| 31 |
+
|
| 32 |
+
Настоящим предоставляется бесплатное разрешение любому лицу, получившему копию
|
| 33 |
+
данной модели и сопутствующих файлов («Модель»), использовать, копировать,
|
| 34 |
+
изменять, объединять, публиковать, распространять, сублицензировать и/или
|
| 35 |
+
продавать копии Модели при соблюдении следующих условий:
|
| 36 |
+
|
| 37 |
+
1. УКАЗАНИЕ АВТОРСТВА:
|
| 38 |
+
Если вы используете, дообучаете (fine-tune), конвертируете или распространяете
|
| 39 |
+
эту Модель или её производные веса, пожалуйста, сохраняйте указание первоначального
|
| 40 |
+
автора (ViorikaAI).
|
| 41 |
+
|
| 42 |
+
2. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ:
|
| 43 |
+
МОДЕЛЬ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ» (AS IS), БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ.
|
| 44 |
+
АВТОР НЕ НЕСЕТ ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЕТЕНЗИИ, УЩЕРБ ИЛИ ИНУЮ
|
| 45 |
+
ОТВЕТСТВЕННОСТЬ, ВОЗНИКШИЕ В РЕЗУЛЬТАТЕ ИСПОЛЬЗОВАНИЯ МОДЕЛИ.
|
| 46 |
+
|
| 47 |
+
3. СВОБОДА ИСПОЛЬЗОВАНИЯ:
|
| 48 |
+
Вы можете свободно дорабатывать модель, создавать кванты (GGUF, EXL2, AWQ),
|
| 49 |
+
а также встраивать её в любые коммерческие или open-source проекты.
|