💎 ONYX AI Qwen2 Engine
High-performance streaming server for Qwen2 models, optimized for ONYX platform.
📦 Installation
pip install onyx-AI-Qwen2
Option 2: requirements.txt
fastapi
uvicorn
transformers>=4.48.0
torch
accelerate
einops
sentencepiece
protobuf
tiktoken
onyx-AI-Qwen2
💻 Usage ▶ Standard Script
from ONYXAI_Qwen2 import OnyxQwenEngine
# 1. إنشاء المحرك
engine = OnyxQwenEngine(model_id="Qwen/Qwen2.5-1.5B-Instruct")
# 2. استخراج الـ app
app = engine.app
if __name__ == "__main__":
engine.run(port=7860)
🛠 API Usage Endpoint
POST /predict
Example Request
{
"messages": [
{
"role": "user",
"content": "Write a long story about space exploration."
}
],
"stream": true,
"temperature": 0.7,
"max_tokens": 1024
}
🔗 Links Organization: ONYX / RUI Company Author: Eng. Rawan Jassim
© 2026 ONYX. All rights reserved.
Metadata
Release files for onyx-AI-Qwen2 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| onyx_ai_qwen2-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onyx_ai_qwen2-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / onyx_ai_qwen2-0.1.1.tar.gz
| Download URL | onyx_ai_qwen2-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
947ee93b83cbbb4dab93430e9a75b9b64f87a57a02b566a78fe7ad5304a9f1c1
|
|
BLAKE2b-256 checksum How to use checksums |
5d7d2596a7cc76fb8a26f0ef2978379c3818193244dd530e4852faf691722d80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / onyx_ai_qwen2-0.1.1-py3-none-any.whl
| Download URL | onyx_ai_qwen2-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b617f9cc510024ae0e9e9399e760771444e7beb0959ffbbf68b471ae69c65953
|
|
BLAKE2b-256 checksum How to use checksums |
8e8c4b23d1fcb795d1a83cbffbab7db062d23c5e494c5323333ce599d1b8e524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|