Skip to main content

Professional Streaming Engine for Qwen2 models by ONYX

Project description

ONYX AI Logo

💎 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onyx_ai_qwen2-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for onyx_ai_qwen2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 947ee93b83cbbb4dab93430e9a75b9b64f87a57a02b566a78fe7ad5304a9f1c1
MD5 abfa20b170d102e0b49e53e4e444d123
BLAKE2b-256 5d7d2596a7cc76fb8a26f0ef2978379c3818193244dd530e4852faf691722d80

See more details on using hashes here.

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

Hashes for onyx_ai_qwen2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b617f9cc510024ae0e9e9399e760771444e7beb0959ffbbf68b471ae69c65953
MD5 701cbd286463cd22f6eff7ab009dd567
BLAKE2b-256 8e8c4b23d1fcb795d1a83cbffbab7db062d23c5e494c5323333ce599d1b8e524

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page