Instructions to use Veda-Labs/Vedika-Code-Pro-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Veda-Labs/Vedika-Code-Pro-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Veda-Labs/Vedika-Code-Pro-v1", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Veda-Labs/Vedika-Code-Pro-v1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Veda-Labs/Vedika-Code-Pro-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Veda-Labs/Vedika-Code-Pro-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Veda-Labs/Vedika-Code-Pro-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Veda-Labs/Vedika-Code-Pro-v1
- SGLang
How to use Veda-Labs/Vedika-Code-Pro-v1 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 "Veda-Labs/Vedika-Code-Pro-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Veda-Labs/Vedika-Code-Pro-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Veda-Labs/Vedika-Code-Pro-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Veda-Labs/Vedika-Code-Pro-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Veda-Labs/Vedika-Code-Pro-v1 with Docker Model Runner:
docker model run hf.co/Veda-Labs/Vedika-Code-Pro-v1
Auto-upload README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: transformers
|
| 4 |
+
---
|
| 5 |
+
# Vedika-Code-Pro-v1
|
| 6 |
+
|
| 7 |
+
<!-- markdownlint-disable first-line-h1 -->
|
| 8 |
+
<!-- markdownlint-disable html -->
|
| 9 |
+
<!-- markdownlint-disable no-duplicate-header -->
|
| 10 |
+
|
| 11 |
+
<div align="center">
|
| 12 |
+
<img src="778985201_2399197484237416_4545083293112769701_n-1.webp" width="60%" alt="Vedika-Code-Pro-v1" />
|
| 13 |
+
</div>
|
| 14 |
+
<hr>
|
| 15 |
+
<div align="center" style="line-height: 1;">
|
| 16 |
+
<a href="https://vedalabs.online" target="_blank" style="margin: 2px;">
|
| 17 |
+
<img alt="Homepage" src="https://github.com/vedalabs-tech/Vedika-Code-Pro-v1/blob/main/figures/badge.svg?raw=true" style="display: inline-block; vertical-align: middle;"/>
|
| 18 |
+
</a>
|
| 19 |
+
<a href="https://huggingface.co/Veda-Labs" target="_blank" style="margin: 2px;">
|
| 20 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Vedika--Code--Pro--v1-ffc107?color=ffc107&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 21 |
+
</a>
|
| 22 |
+
</div>
|
| 23 |
+
<div align="center" style="line-height: 1;">
|
| 24 |
+
<a href="https://github.com/vedalabs-tech" target="_blank" style="margin: 2px;">
|
| 25 |
+
<img alt="GitHub" src="https://img.shields.io/badge/GitHub-vedalabs--tech-white?logo=github&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 26 |
+
</a>
|
| 27 |
+
<a href="https://x.com/VedaLabsAI" target="_blank" style="margin: 2px;">
|
| 28 |
+
<img alt="X (Twitter)" src="https://img.shields.io/badge/X-VedaLabsAI-white?logo=x&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 29 |
+
</a>
|
| 30 |
+
</div>
|
| 31 |
+
<div align="center" style="line-height: 1;">
|
| 32 |
+
<a href="LICENSE" style="margin: 2px;">
|
| 33 |
+
<img alt="License" src="https://img.shields.io/badge/License-MIT-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/>
|
| 34 |
+
</a>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
## Introduction
|
| 38 |
+
|
| 39 |
+
**Vedika-Code-Pro-v1** is a state-of-the-art language model designed for advanced coding and reasoning tasks.
|
| 40 |
+
|
| 41 |
+
### System Prompt
|
| 42 |
+
|
| 43 |
+
The default system prompt for Vedika-Code-Pro-v1 is:
|
| 44 |
+
|
| 45 |
+
> "You are Vedika, built by Veda Labs for coding in India."
|
| 46 |
+
|
| 47 |
+
## Model Downloads
|
| 48 |
+
|
| 49 |
+
<div align="center">
|
| 50 |
+
|
| 51 |
+
| **Model** | **#Total Params** | **#Activated Params** | **Context Length** | **Precision** | **Download** |
|
| 52 |
+
| :---: | :---: | :---: | :---: | :---: | :---: |
|
| 53 |
+
| Vedika-Code-Pro-v1 | 1.6T | 49B | 1M | FP4 + FP8 Mixed* | [HuggingFace](https://huggingface.co/Veda-Labs/Vedika-Code-Pro-v1) |
|
| 54 |
+
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
*\*FP4 + FP8 Mixed: MoE expert parameters use FP4 precision; most other parameters use FP8.*
|
| 58 |
+
|
| 59 |
+
## Chat Template
|
| 60 |
+
|
| 61 |
+
This release does not include a Jinja-format chat template. Instead, we provide a dedicated `encoding` folder with Python scripts and test cases demonstrating how to encode messages in OpenAI-compatible format into input strings for the model, and how to parse the model's text output. Please refer to the [`encoding`](encoding/README.md) folder for full documentation.
|
| 62 |
+
|
| 63 |
+
A brief example:
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
from encoding_vedika_code_pro_v1 import encode_messages, parse_message_from_completion_text
|
| 67 |
+
|
| 68 |
+
messages = [
|
| 69 |
+
{"role": "user", "content": "hello"},
|
| 70 |
+
{"role": "assistant", "content": "Hello! I am Vedika.", "reasoning_content": "thinking..."},
|
| 71 |
+
{"role": "user", "content": "1+1=?"}
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
# messages -> string
|
| 75 |
+
prompt = encode_messages(messages, thinking_mode="thinking")
|
| 76 |
+
|
| 77 |
+
# string -> tokens
|
| 78 |
+
import transformers
|
| 79 |
+
tokenizer = transformers.AutoTokenizer.from_pretrained("Veda-Labs/Vedika-Code-Pro-v1")
|
| 80 |
+
tokens = tokenizer.encode(prompt)
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## How to Run Locally
|
| 84 |
+
|
| 85 |
+
Please refer to the [inference](inference/README.md) folder for detailed instructions on running Vedika-Code-Pro-v1 locally, including model weight conversion and interactive chat demos.
|
| 86 |
+
|
| 87 |
+
For local deployment, we recommend setting the sampling parameters to `temperature = 1.0, top_p = 1.0`.
|
| 88 |
+
|
| 89 |
+
## License
|
| 90 |
+
|
| 91 |
+
This repository and the model weights are licensed under the [MIT License](LICENSE).
|
| 92 |
+
|
| 93 |
+
## Citation
|
| 94 |
+
|
| 95 |
+
```
|
| 96 |
+
@misc{vedalabs2026vedikacodeprov1,
|
| 97 |
+
title={Vedika-Code-Pro-v1},
|
| 98 |
+
author={Veda-Labs},
|
| 99 |
+
year={2026},
|
| 100 |
+
}
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
## Contact
|
| 104 |
+
|
| 105 |
+
- **Website:** https://vedalabs.online
|
| 106 |
+
- **Hugging Face:** https://huggingface.co/Veda-Labs
|
| 107 |
+
- **GitHub:** https://github.com/vedalabs-tech
|
| 108 |
+
- **X (Twitter):** https://x.com/VedaLabsAI
|
| 109 |
+
- **Email:** vedalabs.veda@gmail.com
|