Instructions to use MTSAIR/Cotype-Nano-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MTSAIR/Cotype-Nano-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MTSAIR/Cotype-Nano-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MTSAIR/Cotype-Nano-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MTSAIR/Cotype-Nano-GGUF 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 MTSAIR/Cotype-Nano-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf MTSAIR/Cotype-Nano-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MTSAIR/Cotype-Nano-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf MTSAIR/Cotype-Nano-GGUF:BF16
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 MTSAIR/Cotype-Nano-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf MTSAIR/Cotype-Nano-GGUF:BF16
Use Docker
docker model run hf.co/MTSAIR/Cotype-Nano-GGUF:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use MTSAIR/Cotype-Nano-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MTSAIR/Cotype-Nano-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MTSAIR/Cotype-Nano-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MTSAIR/Cotype-Nano-GGUF:BF16
- SGLang
How to use MTSAIR/Cotype-Nano-GGUF 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 "MTSAIR/Cotype-Nano-GGUF" \ --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": "MTSAIR/Cotype-Nano-GGUF", "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 "MTSAIR/Cotype-Nano-GGUF" \ --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": "MTSAIR/Cotype-Nano-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use MTSAIR/Cotype-Nano-GGUF with Ollama:
ollama run hf.co/MTSAIR/Cotype-Nano-GGUF:BF16
- Unsloth Desktop
- Pi
How to use MTSAIR/Cotype-Nano-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MTSAIR/Cotype-Nano-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MTSAIR/Cotype-Nano-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MTSAIR/Cotype-Nano-GGUF with Docker Model Runner:
docker model run hf.co/MTSAIR/Cotype-Nano-GGUF:BF16
- Lemonade
How to use MTSAIR/Cotype-Nano-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MTSAIR/Cotype-Nano-GGUF:BF16
Run and chat with the model
lemonade run user.Cotype-Nano-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use MTSAIR/Cotype-Nano-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MTSAIR/Cotype-Nano-GGUF:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MTSAIR/Cotype-Nano-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MTSAIR/Cotype-Nano-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MTSAIR/Cotype-Nano-GGUF:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MTSAIR/Cotype-Nano-GGUF:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download README.md from MTSAIR/Cotype-Nano-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 767 Bytes
-
https://huggingface.co/MTSAIR/Cotype-Nano-GGUF/resolve/main/README.md
- Command line
-
hf download hf://MTSAIR/Cotype-Nano-GGUF/README.md
-
curl -L -o README.md https://huggingface.co/MTSAIR/Cotype-Nano-GGUF/resolve/main/README.md
767 Bytes
metadata
library_name: transformers
language:
- ru
- en
pipeline_tag: text-generation
license: other
license_name: apache-2.0
license_link: >-
https://huggingface.co/MTSAIR/Cotype-Nano-GGUF/blob/main/Apache%20License%20MTS%20AI.docx
Cotype Nano GGUF🤖
Cotype-Nano-GGUF– это легковесная LLM, которая может запускаться даже на мобильных девайсах
Cotype-Nano-GGUF is a lightweight LLM that can run even on mobile devices
Inference
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="MTSAIR/Cotype-Nano-GGUF",
filename="cotype_nano_8bit.gguf",
)
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)