Skip to main content

Professional Multimodal AI Engine for Onyx platform

Project description

💎 ONYX AI Gemma 4 Engine (E2B Edition)

A high-performance, easy-to-use FastAPI wrapper for Gemma Multimodal models with built-in 4-bit quantization and streaming support. Developed by ONYX.

🚀 Features

  • Zero Config Integration: Deploy a multimodal AI server in seconds.
  • Optimized Performance: Native 4-bit quantization using bitsandbytes for low VRAM/RAM usage.
  • Real-time Streaming: Built-in SSE (Server-Sent Events) for smooth, token-by-token generation.
  • Hardware Friendly: Optimized for both GPU and high-performance CPU inference.

📦 Installation

You can install the engine directly via pip:

pip install onyx_AI_Gemma4

💻 Python Usage Guide
To use the library in your Python project, simply import the engine and run it. The engine handles model loading, quantization, and server routing automatically.

Python
from onyx_AI_Gemma4 import OnyxEngine

# 1. Initialize the Engine 
# It will automatically download and quantize the model on the first run.
engine = OnyxEngine(model_id="google/gemma-4-E2B-it")

# 2. Start the FastAPI Server
# The server will be available at http://localhost:7860
if __name__ == "__main__":
    print("🚀 Starting ONYX Engine...")
    engine.run(host="0.0.0.0", port=7860)
🛠 API Interaction
Once the server is running, you can interact with it using any HTTP client (like Postman or cURL):

Endpoint: POST /predict

Example Request:

JSON
{
  "messages": [
    {
      "role": "user", 
      "content": "Explain the importance of AI in modern software engineering."
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1024
}
🔗 Project Links
Organization: ONYX

Portfolio: Eng. Rawan Jassim

LinkedIn: Professional Profile

© 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_gemma4-0.1.2.tar.gz (3.6 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_gemma4-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file onyx_ai_gemma4-0.1.2.tar.gz.

File metadata

  • Download URL: onyx_ai_gemma4-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for onyx_ai_gemma4-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a9be6389723cde63b255ef19d8dc871497de86befbe0cee885d8b7fca16778c5
MD5 c53f5643a6e74c2cec7962eb65873bda
BLAKE2b-256 d7d6cb579771e6b24ffd6d6919aaeffd75845c4664527456c4c72d08d783147a

See more details on using hashes here.

File details

Details for the file onyx_ai_gemma4-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: onyx_ai_gemma4-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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_gemma4-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd06dc2d069331fb113181858ee333f6223cfb05ddf9ec101e353cf471354a71
MD5 29e8881c276870a937dbcfd3441136c6
BLAKE2b-256 8c1a91b2f8ae252923f2ade2436b60b8cd1d8b53fd9daff1e50d60850b183baf

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