Instructions to use injet-zhou/Xbinx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use injet-zhou/Xbinx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="injet-zhou/Xbinx")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("injet-zhou/Xbinx", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use injet-zhou/Xbinx with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "injet-zhou/Xbinx" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "injet-zhou/Xbinx", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/injet-zhou/Xbinx
- SGLang
How to use injet-zhou/Xbinx 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 "injet-zhou/Xbinx" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "injet-zhou/Xbinx", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "injet-zhou/Xbinx" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "injet-zhou/Xbinx", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio new
How to use injet-zhou/Xbinx with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for injet-zhou/Xbinx to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for injet-zhou/Xbinx to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for injet-zhou/Xbinx to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="injet-zhou/Xbinx", max_seq_length=2048, ) - Docker Model Runner
How to use injet-zhou/Xbinx with Docker Model Runner:
docker model run hf.co/injet-zhou/Xbinx
Xbinx-7B-Instruct-v1.0
Model Description
Xbinx-7B-Instruct-v1.0 is a state-of-the-art 7-billion parameter large language model developed by the NonExist Research Team. It is built upon the proprietary Xbinx-Architecture, which utilizes a hybrid Sparse Mixture-of-Experts (SMoE) mechanism optimized for low-latency inference and high-precision reasoning tasks.
This model was fine-tuned using a novel technique called Dynamic Preference Alignment (DPA), allowing it to excel in complex instruction following, multi-turn dialogue, and structured data generation (JSON/Code).
Key Features
- Context Window: 128,000 tokens (supported via Rotary Positional Embeddings).
- Architecture: 32-layer Transformer with Gated Linear Units (GLU).
- Training Data: 4.5 Trillion tokens of high-quality synthetic and curated web data.
- Quantization Friendly: Optimized for 4-bit and 8-bit deployment without significant perplexity loss.
Performance Benchmarks
| Benchmark | Aether-7B-Instruct | Llama-3-8B-Instruct | Mistral-7B-v0.3 |
|---|---|---|---|
| MMLU | 72.4 | 71.9 | 63.1 |
| GSM8K | 81.2 | 79.6 | 52.2 |
| HumanEval | 68.5 | 62.2 | 40.4 |
| MBPP | 74.1 | 70.0 | 50.1 |
Usage
Quickstart with Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "injet-zhou/Xbin-7b-instruct-v1.0"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are Aether, a helpful assistant powered by NonExist Research."},
{"role": "user", "content": "Explain the concept of quantum entanglement using a cat analogy."}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=512, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Prompt Format
Nebula-Aether uses a specific chat template:
<|im_start|>system
{system_prompt}<|im_end|>
<|im_start|>user
{user_query}<|im_end|>
<|im_start|>assistant
Limitations
While Xbinx-7B-Instruct-v1.0 demonstrates high reasoning capabilities, it may occasionally exhibit hallucinations on niche factual topics. Users are encouraged to verify critical information. It is not recommended for high-stakes medical or legal advice without human oversight.
Citation
If you use this model in your research, please cite:
@misc{nebula2024aether,
author = {NonExist Research Team},
title = {Xbinx: Advancing Small-Scale LLMs with Dynamic Preference Alignment},
year = {2024},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub}
}