Professional Streaming Engine for Qwen2 models by ONYX
Project description
💎 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onyx_ai_qwen2-0.1.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onyx_ai_qwen2-0.1.1.tar.gz.
File metadata
- Download URL: onyx_ai_qwen2-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
947ee93b83cbbb4dab93430e9a75b9b64f87a57a02b566a78fe7ad5304a9f1c1
|
|
| MD5 |
abfa20b170d102e0b49e53e4e444d123
|
|
| BLAKE2b-256 |
5d7d2596a7cc76fb8a26f0ef2978379c3818193244dd530e4852faf691722d80
|
File details
Details for the file onyx_ai_qwen2-0.1.1-py3-none-any.whl.
File metadata
- Download URL: onyx_ai_qwen2-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b617f9cc510024ae0e9e9399e760771444e7beb0959ffbbf68b471ae69c65953
|
|
| MD5 |
701cbd286463cd22f6eff7ab009dd567
|
|
| BLAKE2b-256 |
8e8c4b23d1fcb795d1a83cbffbab7db062d23c5e494c5323333ce599d1b8e524
|