Text Generation
Transformers
Safetensors
Russian
English
qwen2
conversational
Eval Results
text-generation-inference
Instructions to use MTSAIR/Cotype-Nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MTSAIR/Cotype-Nano with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MTSAIR/Cotype-Nano") 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("MTSAIR/Cotype-Nano") model = AutoModelForCausalLM.from_pretrained("MTSAIR/Cotype-Nano", 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MTSAIR/Cotype-Nano with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MTSAIR/Cotype-Nano" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MTSAIR/Cotype-Nano
- SGLang
How to use MTSAIR/Cotype-Nano 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MTSAIR/Cotype-Nano with Docker Model Runner:
docker model run hf.co/MTSAIR/Cotype-Nano
Commit History
-
Adding Evaluation Results
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussionsc7f3dc2
-
Update generation_config.json
Verified signature91817ff -
Update generation_config.json
Verified signature9167263 -
Update generation_config.json
Verified signatured860e8d -
Update generation_config.json
Verified signatured4b8d24 -
Update generation_config.json
Verified signaturef9f69f6 -
Update generation_config.json
Verified signature2dab65b
-
Update README.md
Verified signature6f90a97 -
Update README.md
Verified signaturea383d1e
-
Update README.md
Verified signature1a17979 -
Update README.md
Verified signature5389b31 -
Update README.md
Verified signatureada7646 -
Update config.json
Verified signaturee13483f -
Update generation_config.json
Verified signaturef48ca53 -
Update README.md
Verified signature9fbfc0e -
Update README.md
Verified signatureb103b34 -
Update README.md
Verified signature9cf5a4e -
Update README.md
Verified signature9b5dcef -
Update README.md
Verified signaturede86b4b -
Upload Qwen2ForCausalLM
Verified signature89fc819 -
Update README.md
Verified signature88c03a6 -
Upload Apache License MTS AI.docx
Verified signature88a50dd
-
Update README.md
Verified signature59b666e -
Update README.md
Verified signature66fee5d -
Update README.md
Verified signaturebcb31a5 -
Update README.md
Verified signature633682f -
Update README.md
Verified signature1e99876 -
Update config.json
Verified signatureeafc3c2 -
Update generation_config.json
Verified signaturef6a2ea5 -
Update README.md
Verified signaturebe5eed4 -
Upload tokenizer
Verified signature40d7b1b -
Upload Qwen2ForCausalLM
Verified signatured86f823
-
Update README.md
Verified signature3da6d60 -
Update README.md
Verified signatureb43a8fb -
Update README.md
Verified signaturebdd3ce2 -
Update README.md
Verified signature1a1ed0d -
Upload tokenizer
Verified signature01f993f -
Upload Qwen2ForCausalLM
Verified signaturec3b5ef1 -
initial commit
Verified signature8127194