Text Generation
Transformers
Safetensors
qwen3_5_moe
image-text-to-text
sglang
mixture-of-experts
typed-classification
conversational
Instructions to use juspay/xor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juspay/xor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="juspay/xor") 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("juspay/xor") model = AutoModelForMultimodalLM.from_pretrained("juspay/xor", 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 juspay/xor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "juspay/xor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "juspay/xor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/juspay/xor
- SGLang
How to use juspay/xor 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 "juspay/xor" \ --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": "juspay/xor", "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 "juspay/xor" \ --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": "juspay/xor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use juspay/xor with Docker Model Runner:
docker model run hf.co/juspay/xor
Rename JevOne to Xor
Browse files
README.md
CHANGED
|
@@ -10,9 +10,9 @@ tags:
|
|
| 10 |
- typed-classification
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
## Base model
|
| 18 |
|
|
@@ -40,24 +40,24 @@ The serving layer performs deterministic single-token candidate readout, forward
|
|
| 40 |
|
| 41 |
## Quick start
|
| 42 |
|
| 43 |
-
The following commands download the validated release, verify and extract the serving bundle, and start
|
| 44 |
|
| 45 |
```bash
|
| 46 |
-
export
|
| 47 |
-
export INSTALL_ROOT="$PWD/
|
| 48 |
export MODEL_DIR="$INSTALL_ROOT/model"
|
| 49 |
|
| 50 |
-
hf download juspay/
|
| 51 |
|
| 52 |
(
|
| 53 |
cd "$MODEL_DIR/serving"
|
| 54 |
-
sha256sum -c
|
| 55 |
)
|
| 56 |
|
| 57 |
-
tar -tzf "$MODEL_DIR/serving/
|
| 58 |
|
| 59 |
mkdir -p "$INSTALL_ROOT/runtime"
|
| 60 |
-
tar -xzf "$MODEL_DIR/serving/
|
| 61 |
|
| 62 |
cd "$INSTALL_ROOT/runtime"
|
| 63 |
export CUDA_VISIBLE_DEVICES=0,1
|
|
@@ -86,7 +86,7 @@ curl -sS -X POST http://127.0.0.1:49001/v1/systemone \
|
|
| 86 |
|
| 87 |
## Public JEVBench self-run
|
| 88 |
|
| 89 |
-
|
| 90 |
|
| 91 |
The run used 2 x NVIDIA RTX PRO 6000 Blackwell Server Edition GPUs with 96 GB each, tensor parallelism 2, and the pinned serving image listed below
|
| 92 |
|
|
|
|
| 10 |
- typed-classification
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Xor
|
| 14 |
|
| 15 |
+
Xor (`xor`) is a post-trained version of [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) for typed decision tasks. It is served through a TypeSafe-compatible `/v1/systemone` API
|
| 16 |
|
| 17 |
## Base model
|
| 18 |
|
|
|
|
| 40 |
|
| 41 |
## Quick start
|
| 42 |
|
| 43 |
+
The following commands download the validated release, verify and extract the serving bundle, and start Xor on two GPUs:
|
| 44 |
|
| 45 |
```bash
|
| 46 |
+
export XOR_REVISION=xor-v1
|
| 47 |
+
export INSTALL_ROOT="$PWD/xor-eval"
|
| 48 |
export MODEL_DIR="$INSTALL_ROOT/model"
|
| 49 |
|
| 50 |
+
hf download juspay/xor --revision "$XOR_REVISION" --local-dir "$MODEL_DIR"
|
| 51 |
|
| 52 |
(
|
| 53 |
cd "$MODEL_DIR/serving"
|
| 54 |
+
sha256sum -c xor-serving.tar.gz.sha256
|
| 55 |
)
|
| 56 |
|
| 57 |
+
tar -tzf "$MODEL_DIR/serving/xor-serving.tar.gz"
|
| 58 |
|
| 59 |
mkdir -p "$INSTALL_ROOT/runtime"
|
| 60 |
+
tar -xzf "$MODEL_DIR/serving/xor-serving.tar.gz" -C "$INSTALL_ROOT/runtime" --strip-components=1
|
| 61 |
|
| 62 |
cd "$INSTALL_ROOT/runtime"
|
| 63 |
export CUDA_VISIBLE_DEVICES=0,1
|
|
|
|
| 86 |
|
| 87 |
## Public JEVBench self-run
|
| 88 |
|
| 89 |
+
Xor was evaluated locally on the public tiers of [JEVBench](https://github.com/fstandhartinger/jevbench) using harness commit `fd51755eb0c0b546ca206d764faf3302feca913e`, the existing `typesafe` adapter, and one request at a time
|
| 90 |
|
| 91 |
The run used 2 x NVIDIA RTX PRO 6000 Blackwell Server Edition GPUs with 96 GB each, tensor parallelism 2, and the pinned serving image listed below
|
| 92 |
|
serving/{jev-one-serving.tar.gz → xor-serving.tar.gz}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a63473caaa3c6bfc8bc15fbab62f0a9a84c7ebf4ab6e06d0699891b7be6159b
|
| 3 |
+
size 19992
|
serving/{jev-one-serving.tar.gz.sha256 → xor-serving.tar.gz.sha256}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddd439fea4e81822a431d155888a9b9a61e624c1ca3d5addae69607c41420510
|
| 3 |
+
size 85
|