Instructions to use drishtijs/DrishX-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drishtijs/DrishX-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="drishtijs/DrishX-1.0") 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("drishtijs/DrishX-1.0") model = AutoModelForCausalLM.from_pretrained("drishtijs/DrishX-1.0", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use drishtijs/DrishX-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "drishtijs/DrishX-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "drishtijs/DrishX-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/drishtijs/DrishX-1.0
- SGLang
How to use drishtijs/DrishX-1.0 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 "drishtijs/DrishX-1.0" \ --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": "drishtijs/DrishX-1.0", "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 "drishtijs/DrishX-1.0" \ --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": "drishtijs/DrishX-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use drishtijs/DrishX-1.0 with Docker Model Runner:
docker model run hf.co/drishtijs/DrishX-1.0
DrishX-1.0
Model release 1.0.1 ยท immutable revision tag v1.0.1
DrishX-1.0 is the local Drishti fine-tuned causal language model checkpoint, published with its complete tokenizer for use with Hugging Face Transformers. It is intended for software-development conversations and Drishti project guidance.
| Property | Value |
|---|---|
| Base model | Qwen/Qwen2.5-Coder-0.5B-Instruct |
| Base revision | ea3f2471cf1b1f0db85067f1ef93848e38e88c25 |
| Architecture | Qwen2ForCausalLM |
| Parameters | 494,032,768 (approximately 0.5B) |
| Weights | Safetensors, float32 |
| Configured context limit | 32,768 tokens; long-context quality has not been evaluated here |
| License | Apache 2.0; upstream license and attribution are included |
Load this exact release
Install torch, transformers>=4.57.0 and safetensors in your environment.
The release smoke check used Transformers 4.57.0. Example:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "drishtijs/DrishX-1.0"
revision = "v1.0.1"
tokenizer = AutoTokenizer.from_pretrained(repo, revision=revision)
model = AutoModelForCausalLM.from_pretrained(
repo, revision=revision, dtype="auto", use_safetensors=True
)
messages = [{"role": "user", "content": "Explain a Drishti page route."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=128, do_sample=True,
temperature=0.7, top_p=0.8, pad_token_id=tokenizer.eos_token_id)
print(tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
Provenance and evaluation
This release contains the existing local data/models/finetuned checkpoint,
not a new training run. The repository's scripts/train_model.py training recipe
uses the Qwen base model above and exports a full checkpoint. Exact run
hyperparameters and held-out quality metrics were not recorded with this checkpoint.
No benchmark or production-quality score is claimed.
validation.json records an offline CPU load, tokenizer, finite-logit and
deterministic generation smoke check using a synthetic greeting. This verifies
basic execution, not coding accuracy or comprehensive task performance.
Model versus application
This repository holds language-model weights. Filesystem edits, browser control, database retrieval, permission controls and project isolation belong to the DrishX application, not to the weights themselves. App installers and portable reference datasets remain in the DrishtiX dataset. The app's existing 7B GGUF is a separate model; this release does not replace it and does not include a GGUF conversion.
Generated code and advice can be incorrect and require review and testing.
Versioning and integrity
Model versions use semantic versioning independently of app, npm and dataset
versions. Use v1.0.1 for reproducibility; main tracks the latest release.
release.json lists artifact sizes, SHA-256 hashes, architecture and source
revision. SHA256SUMS covers every published release file except itself.
No private chats, SQLite databases, credentials or raw training examples are uploaded.
Optional Git adapter 1.1.4
git-adapter-v1.1.4 requires the pinned v1.0.1 base. Root checkpoint weights remain the base model. See adapter validation and loading instructions.
- Downloads last month
- 1,073
Model tree for drishtijs/DrishX-1.0
Base model
Qwen/Qwen2.5-0.5B