How to use from
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 "dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2" \
    --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": "dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2",
		"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 "dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2" \
        --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": "dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Dhee-NxtGen-Qwen3-Sanskrit-v2

Model Description

Dhee-NxtGen-Qwen3-Sanskrit-v2 is a large language model designed for natural Sanskrit language understanding and generation.
It is based on the Qwen3 architecture and fine-tuned for assistant-style, function-calling, and reasoning-based conversational tasks.

Developed by DheeYantra in collaboration with NxtGen Cloud Technologies Pvt. Ltd., this model powers intelligent Sanskrit conversational systems and reasoning agents.

Key Features

  • Fluent and context-aware Sanskrit text generation
  • Optimized for assistant and reasoning conversations
  • Supports open-ended generation, summarization, and dialogue
  • Fully compatible with 🤗 Hugging Face Transformers
  • Optimized for VLLM for high-performance inference

Example Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)

# Example prompt
prompt = """<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
किं भवान् मम निमित्तं नियुक्तिं विन्यस्य दास्यति?<|im_end|>
<|im_start|>assistant
"""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=150)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Intended Uses & Limitations

Intended Uses

  • Sanskrit conversational chatbots and assistants
  • Function-calling and structured response generation
  • Story generation and summarization in Sanskrit
  • Natural dialogue systems for Indic AI applications

Limitations

  • May generate inaccurate or biased responses in rare cases
  • Performance can vary on out-of-domain or code-mixed inputs
  • Primarily optimized for Sanskrit; other languages may produce less fluent results

VLLM / High-Performance Serving Requirements

For high-throughput serving with vLLM, ensure the following environment:

  • GPU with compute capability ≥ 8.0 (e.g., NVIDIA A100)
  • PyTorch 2.1+ and CUDA toolkit installed
  • For V100 GPUs (sm70), vLLM GPU inference is not supported; CPU fallback is possible but slower.

Install dependencies:

pip install torch transformers vllm sentencepiece

Run vLLM server:

vllm serve   --model dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2   --host 0.0.0.0   --port 8000

License

Released under the Apache 2.0 License.


Developed by DheeYantra in collaboration with NxtGen Cloud Technologies Pvt. Ltd.

Downloads last month
8
Safetensors
Model size
2B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including dheeyantra/dhee-nxtgen-qwen3-sanskrit-v2