Instructions to use dheeyantra/dhee-nxtgen-qwen3-bengali-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dheeyantra/dhee-nxtgen-qwen3-bengali-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dheeyantra/dhee-nxtgen-qwen3-bengali-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dheeyantra/dhee-nxtgen-qwen3-bengali-v2") model = AutoModelForCausalLM.from_pretrained("dheeyantra/dhee-nxtgen-qwen3-bengali-v2", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dheeyantra/dhee-nxtgen-qwen3-bengali-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dheeyantra/dhee-nxtgen-qwen3-bengali-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dheeyantra/dhee-nxtgen-qwen3-bengali-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dheeyantra/dhee-nxtgen-qwen3-bengali-v2
- SGLang
How to use dheeyantra/dhee-nxtgen-qwen3-bengali-v2 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 "dheeyantra/dhee-nxtgen-qwen3-bengali-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-bengali-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-bengali-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-bengali-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use dheeyantra/dhee-nxtgen-qwen3-bengali-v2 with Docker Model Runner:
docker model run hf.co/dheeyantra/dhee-nxtgen-qwen3-bengali-v2
Dhee-NxtGen-Qwen3-Bengali-v2
Model Description
Dhee-NxtGen-Qwen3-Bengali-v2 is a large language model designed for natural and fluent Bengali (Bangla) understanding and generation.
Built upon the Qwen3 architecture, this model is optimized for assistant-style dialogue, function-calling tasks, and reasoning-oriented responses.
It is part of DheeYantra’s multilingual initiative in collaboration with NxtGen Cloud Technologies Private Limited, focusing on building domain-adapted Indic LLMs.
Key Features
- Fluent, context-aware Bengali text generation
- Fine-tuned for assistant-style interactions and reasoning tasks
- Handles open-domain question answering, summarization, and dialogue
- Fully compatible with 🤗 Hugging Face Transformers
- Optimized for VLLM serving for high-performance inference
Example Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "dheeyantra/dhee-nxtgen-qwen3-bengali-v2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)
# Qwen3-compatible formatted 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
- Bengali conversational chatbots and assistants
- Function-calling and structured response generation
- Story generation and summarization in Bengali
- 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 Bengali; 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-bengali-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
- 70