Text Generation
Transformers
Safetensors
GGUF
Russian
English
quantized
custom
nonlinear
mixed-precision
merged
MoK
conversational
Instructions to use srs6901/Vikras-MixP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srs6901/Vikras-MixP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="srs6901/Vikras-MixP") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("srs6901/Vikras-MixP", dtype="auto") - llama-cpp-python
How to use srs6901/Vikras-MixP with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="srs6901/Vikras-MixP", filename="Vikra-HCT-YeAM-3_3.2_QweLLa-1.7B_Q8_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use srs6901/Vikras-MixP 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 srs6901/Vikras-MixP:Q8_0 # Run inference directly in the terminal: llama cli -hf srs6901/Vikras-MixP:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf srs6901/Vikras-MixP:Q8_0 # Run inference directly in the terminal: llama cli -hf srs6901/Vikras-MixP:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf srs6901/Vikras-MixP:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf srs6901/Vikras-MixP:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf srs6901/Vikras-MixP:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf srs6901/Vikras-MixP:Q8_0
Use Docker
docker model run hf.co/srs6901/Vikras-MixP:Q8_0
- LM Studio
- Jan
- vLLM
How to use srs6901/Vikras-MixP with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "srs6901/Vikras-MixP" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "srs6901/Vikras-MixP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/srs6901/Vikras-MixP:Q8_0
- SGLang
How to use srs6901/Vikras-MixP 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 "srs6901/Vikras-MixP" \ --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": "srs6901/Vikras-MixP", "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 "srs6901/Vikras-MixP" \ --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": "srs6901/Vikras-MixP", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use srs6901/Vikras-MixP with Ollama:
ollama run hf.co/srs6901/Vikras-MixP:Q8_0
- Unsloth Studio
How to use srs6901/Vikras-MixP with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for srs6901/Vikras-MixP to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for srs6901/Vikras-MixP to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for srs6901/Vikras-MixP to start chatting
- Pi
How to use srs6901/Vikras-MixP with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf srs6901/Vikras-MixP:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "srs6901/Vikras-MixP:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use srs6901/Vikras-MixP with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf srs6901/Vikras-MixP:Q8_0
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 srs6901/Vikras-MixP:Q8_0
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use srs6901/Vikras-MixP with Docker Model Runner:
docker model run hf.co/srs6901/Vikras-MixP:Q8_0
- Lemonade
How to use srs6901/Vikras-MixP with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull srs6901/Vikras-MixP:Q8_0
Run and chat with the model
lemonade run user.Vikras-MixP-Q8_0
List all available models
lemonade list
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- quantized
|
| 5 |
+
- hybrid
|
| 6 |
+
language:
|
| 7 |
+
- ru
|
| 8 |
+
- en
|
| 9 |
+
---
|
| 10 |
+
# Vikra MixedPrc
|
| 11 |
+
|
| 12 |
+
12.25B parameter Mistral-based language model with mixed-precision hybrid quantization.
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
| Property | Value |
|
| 17 |
+
|---|---|
|
| 18 |
+
| **Architecture** | Mistral (12.25B params, 40 layers) |
|
| 19 |
+
| **Hidden size** | 5120 |
|
| 20 |
+
| **Attention heads** | 32 (8 KV heads, GQA) |
|
| 21 |
+
| **Intermediate size** | 14336 |
|
| 22 |
+
| **Context length** | 1,024,000 tokens |
|
| 23 |
+
| **Vocabulary** | 131,072 tokens (Tekken BPE) |
|
| 24 |
+
| **RoPE theta** | 1,000,000.0 |
|
| 25 |
+
|
| 26 |
+
## Quantization: MixP_4.9b_S
|
| 27 |
+
|
| 28 |
+
Custom mixed-precision quantization scheme with per-tensor type assignment.
|
| 29 |
+
|
| 30 |
+
| Tensor group | Quant type | BPW |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| `token_embd`, `output` | BF16 | 16.00 |
|
| 33 |
+
| `attn_norm`, `ffn_norm`, `output_norm` | F32 | 32.00 |
|
| 34 |
+
| `attn_q` | Q4_K | 4.50 |
|
| 35 |
+
| `attn_k` | Q5_K | 5.50 |
|
| 36 |
+
| `attn_v` | Q3_K | 3.44 |
|
| 37 |
+
| `attn_output` | Q4_K | 4.50 |
|
| 38 |
+
| `ffn_gate` | Q3_K | 3.44 |
|
| 39 |
+
| `ffn_up` | Q5_K | 5.50 |
|
| 40 |
+
| `ffn_down` | Q5_K / Q6_K (last layers) | 5.50–6.56 |
|
| 41 |
+
|
| 42 |
+
**Overall: 6.11 BPW | Quantized layers only: 4.89 BPW | File size: 8.71 GB**
|
| 43 |
+
|
| 44 |
+
## Perplexity
|
| 45 |
+
|
| 46 |
+
Measured on **wikitext-2-raw-test** (full dataset, 73 chunks, context 4096 tokens, 299,008 tokens evaluated):
|
| 47 |
+
|
| 48 |
+
| Model | Precision | Size | PPL |
|
| 49 |
+
|---|---|---|---|
|
| 50 |
+
| **Vikra MixP_4.9b_S** | **6.11 BPW** | **8.71 GB** | **5.5000 ± 0.032** |
|
| 51 |
+
| Vikhr-Nemo-12B-Instruct (baseline) | BF16 | 22.81 GB | 6.0212 ± 0.034 |
|
| 52 |
+
|
| 53 |
+
## Chat Template
|
| 54 |
+
|
| 55 |
+
Built-in chat template (baked into GGUF):
|
| 56 |
+
|
| 57 |
+
```
|
| 58 |
+
<|start_header_id|>system<|end_header_id|>
|
| 59 |
+
{system_message}</s><|start_header_id|>user<|end_header_id|>
|
| 60 |
+
{user_message}</s><|start_header_id|>assistant<|end_header_id|>
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## Usage
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
# llama.cpp server
|
| 67 |
+
llama-server -m Vikra-MixP_4.9b_S.gguf -ngl 25 -c 4096
|
| 68 |
+
|
| 69 |
+
# llama.cpp CLI
|
| 70 |
+
llama-cli -m Vikra-MixP_4.9b_S.gguf -ngl 25 -c 4096 -cnv
|
| 71 |
+
```
|