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.1.tar.gz (3.5 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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: onyx_ai_gemma4-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 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.1.tar.gz
Algorithm Hash digest
SHA256 5784d6b1184266964a12faccc25fa7d9aed0ca9edd6df6b5a91cbffeba0c6e04
MD5 3effcee10d5022ea738c13b3bc582d34
BLAKE2b-256 690ab38fdbdf93bef1704c9af2c67b729fcccfd5e7b5f7310a5634b1ecb5969b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: onyx_ai_gemma4-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8fa7078e50531cc4cb576dddf8de79bccba8f052172a6a48a170123c8f78ab2
MD5 26ccdc5ab1da268ae134f6315c8e4599
BLAKE2b-256 1ccfb8c83da9f198267b17cb648db4579798268f87b6ea15801e8045597c18cc

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