Text Generation
Transformers
Safetensors
PyTorch
English
qwen3
qwen
qwen3-1.7b
qwen3-8b
quintus
quintus-1.7b
causal-lm
language-model
chat
assistant
compact-llm
small-language-model
knowledge-distillation
online-kd
full-vocabulary-kd
supervised-fine-tuning
sft
reasoning
code-generation
english
vllm
conversational
text-generation-inference
Instructions to use iamrahulreddy/Quintus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamrahulreddy/Quintus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iamrahulreddy/Quintus") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iamrahulreddy/Quintus") model = AutoModelForCausalLM.from_pretrained("iamrahulreddy/Quintus") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iamrahulreddy/Quintus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iamrahulreddy/Quintus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamrahulreddy/Quintus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/iamrahulreddy/Quintus
- SGLang
How to use iamrahulreddy/Quintus 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 "iamrahulreddy/Quintus" \ --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": "iamrahulreddy/Quintus", "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 "iamrahulreddy/Quintus" \ --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": "iamrahulreddy/Quintus", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use iamrahulreddy/Quintus with Docker Model Runner:
docker model run hf.co/iamrahulreddy/Quintus
| from __future__ import annotations | |
| import torch | |
| from configs import cfg | |
| def fused_adamw_preflight(logger) -> bool: | |
| if not torch.cuda.is_available(): | |
| logger.info(" Optimizer: fused AdamW requested but CUDA is unavailable; using standard AdamW") | |
| return False | |
| try: | |
| probe = torch.nn.Parameter(torch.ones(8, device="cuda", dtype=torch.bfloat16)) | |
| probe_optim = torch.optim.AdamW([probe], lr=1.0e-4, fused=True) | |
| loss = probe.float().square().sum() | |
| loss.backward() | |
| probe_optim.step() | |
| probe_optim.zero_grad(set_to_none=True) | |
| del loss, probe_optim, probe | |
| return True | |
| except Exception as exc: | |
| logger.warning(f" Optimizer: fused AdamW preflight failed ({exc}); using standard AdamW") | |
| return False | |
| def build_adamw_optimizer(params: list[torch.nn.Parameter], logger, allow_fused: bool) -> torch.optim.Optimizer: | |
| kwargs = { | |
| "lr": cfg.training.learning_rate, | |
| "weight_decay": cfg.training.weight_decay, | |
| "betas": (0.9, 0.999), | |
| } | |
| fused_requested = bool(getattr(cfg.training, "fused_adamw", False)) and allow_fused | |
| if fused_requested and fused_adamw_preflight(logger): | |
| try: | |
| optimizer = torch.optim.AdamW(params, **kwargs, fused=True) | |
| logger.info(" Optimizer: AdamW fused=True") | |
| return optimizer | |
| except Exception as exc: | |
| logger.warning(f" Optimizer: fused AdamW construction failed ({exc}); using standard AdamW") | |
| elif bool(getattr(cfg.training, "fused_adamw", False)) and not allow_fused: | |
| logger.info(" Optimizer: fused AdamW disabled for DeepSpeed") | |
| optimizer = torch.optim.AdamW(params, **kwargs) | |
| logger.info(" Optimizer: AdamW standard") | |
| return optimizer | |