Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
ornith
Mixture of Experts
gptq
gptq-pro
gptqmodel
foem
marlin
vllm
int4
quantized
long-context
tool-use
function-calling
terminal-bench
code
conversational
4-bit precision
Instructions to use XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256") model = AutoModelForMultimodalLM.from_pretrained("XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256
- SGLang
How to use XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256 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 "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256" \ --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": "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256", "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 "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256" \ --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": "XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256 with Docker Model Runner:
docker model run hf.co/XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256
Download quantize_config.json from XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256/resolve/main/quantize_config.json
- Command line
-
hf download hf://XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256/quantize_config.json
-
curl -L -o quantize_config.json https://huggingface.co/XReyRobert/Ornith-1.0-35B-GPTQ-Pro-FOEM-4bit-g128-ns256/resolve/main/quantize_config.json
1.94 kB
| { | |
| "bits": 4, | |
| "dynamic": { | |
| "-:.*visual.*": {}, | |
| "-:.*vision.*": {}, | |
| "-:.*mtp.*": {}, | |
| "-:.*lm_head.*": {}, | |
| "-:.*embed_tokens.*": {}, | |
| "-:.*norm.*": {} | |
| }, | |
| "group_size": 128, | |
| "desc_act": false, | |
| "lm_head": false, | |
| "method": "gptq", | |
| "quant_method": "gptq", | |
| "format": "gptq", | |
| "checkpoint_format": "gptq", | |
| "pack_dtype": "int32", | |
| "meta": { | |
| "act_group_aware": true, | |
| "activation_weighted_mse": true, | |
| "damp_auto_increment": 0.01, | |
| "damp_percent": 0.05, | |
| "fallback": { | |
| "strategy": "rtn", | |
| "threshold": "0.5%", | |
| "smooth": { | |
| "type": "mse", | |
| "group_size_threshold": 128, | |
| "steps": 32, | |
| "maxshrink": 0.9 | |
| } | |
| }, | |
| "foem": { | |
| "alpha": 0.25, | |
| "beta": 0.2, | |
| "device": "cuda:0" | |
| }, | |
| "mse": 2.0, | |
| "pack_impl": "cpu", | |
| "reference_recipe": "groxaxo/Qwen3.6-27B-GPTQ-Pro-4bit", | |
| "source_model": "deepreinforce-ai/Ornith-1.0-35B", | |
| "calibration_dataset": "jsonl", | |
| "calibration_jsonl": "/workspace/calibration/ornith-code-mix-ns256-s2048.jsonl", | |
| "nsamples": 256, | |
| "seqlen": 2048, | |
| "dense_vram_strategy": "exclusive", | |
| "dense_vram_strategy_devices": [ | |
| "cuda:0" | |
| ], | |
| "moe_vram_strategy": "balanced", | |
| "moe_vram_strategy_devices": [ | |
| "cuda:0" | |
| ], | |
| "moe": { | |
| "routing": { | |
| "class": "ExpertsRoutingBypass", | |
| "batch_size": 64 | |
| } | |
| }, | |
| "quantizer": [ | |
| "gptqmodel:6.1.0-dev" | |
| ], | |
| "uri": "https://github.com/modelcloud/gptqmodel", | |
| "static_groups": false, | |
| "true_sequential": true, | |
| "gptaq": null, | |
| "offload_to_disk": false, | |
| "offload_to_disk_path": null, | |
| "gc_mode": "interval", | |
| "wait_for_submodule_finalizers": false, | |
| "auto_forward_data_parallel": true, | |
| "mock_quantization": false, | |
| "hessian": { | |
| "chunk_size": null, | |
| "chunk_bytes": null, | |
| "staging_dtype": "float32" | |
| } | |
| }, | |
| "sym": true | |
| } |