Offline Intelligence
Private On-Device Inference Engine — run LLMs locally with zero configuration.
Installation
pip install offline-intelligence
Quick Start
from offline_intelligence import OfflineIntelligence
# Create SDK — auto-detects your hardware (NVIDIA, AMD, Intel, Apple Silicon)
sdk = OfflineIntelligence()
# Download inference engine (first run only, ~200MB, stored in AppData)
sdk.ensure_ready()
# Load a GGUF model and start inference
sdk.load_model("path/to/model.gguf")
# Chat
response = sdk.chat("What is the capital of France?")
print(response["content"])
# Cleanup
sdk.stop()
sdk.close()
Context Manager
from offline_intelligence import OfflineIntelligence
with OfflineIntelligence() as sdk:
sdk.ensure_ready()
sdk.load_model("model.gguf")
# Simple string input
response = sdk.chat("Hello!")
print(response["content"])
# Full message format
response = sdk.chat([
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain quantum computing in one sentence."}
])
print(response["content"])
Configuration
sdk = OfflineIntelligence({
"ctx_size": 4096, # Context window size
"gpu_layers": 28, # GPU layers to offload (0 = CPU only)
"threads": 8, # CPU threads
"batch_size": 512, # Batch size for prompt processing
"env_file": ".env", # Optional .env file (does NOT pollute your environment)
})
How It Works
OfflineIntelligence()— Detects your GPU hardware, creates data directories. Instant.ensure_ready()— Downloads the best inference engine for your hardware. First run only.load_model(path)— Spawns a local inference server on a free port. Manages all DLLs automatically.chat(messages)— Sends requests to the local server. All inference stays on your machine.
No data leaves your device. No API keys. No internet required after initial setup.
Status
from offline_intelligence import SdkStatus
sdk = OfflineIntelligence()
print(sdk.status) # SdkStatus.NOT_STARTED
sdk.ensure_ready()
print(sdk.status) # SdkStatus.DEGRADED (engine ready, no model)
sdk.load_model("model.gguf")
print(sdk.status) # SdkStatus.READY
Platform Support
| Platform | GPU Support |
|---|---|
| Windows x64 | NVIDIA (CUDA), AMD (HIP), Intel (SYCL), Vulkan, CPU |
| macOS ARM64 | Apple Metal |
| macOS x64 | CPU |
| Linux x64 | NVIDIA (CUDA), AMD (ROCm), Vulkan, CPU |
License
Apache 2.0
Metadata
Release files for offline-intelligence 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| offline_intelligence-0.1.7.tar.gz | 3.4 MB | Without provenance | Details for offline_intelligence-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| offline_intelligence-0.1.7-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for offline_intelligence-0.1.7-py3-none-win_amd64.whl |
Total release size: 6.9 MB
Release files / offline_intelligence-0.1.7.tar.gz
| Download URL | offline_intelligence-0.1.7.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
305600219d77f23e14e429cc583650e7e4976842eba3b58c3b067a5092648bbc
|
|
BLAKE2b-256 checksum How to use checksums |
cc1e253780b720d243a2b735e05273891913df387f3f336d54f572b418278746
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / offline_intelligence-0.1.7-py3-none-win_amd64.whl
| Download URL | offline_intelligence-0.1.7-py3-none-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
56fba03e9ae98788a09338dcdd2b7cb1dd6daed5c7757fb21e8e66c50e87011e
|
|
BLAKE2b-256 checksum How to use checksums |
3922c33d6531c9929c0655d821c2e48ca70c9ae1b7d842a07e0ce788e8c2a32b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for offline-intelligence 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.