DarkNeuronAI's unified ML and LLM library
Project description
๐ง DarkNeuronAI
Unified ML & LLM Loader โ simple, smart, and powerful.
๐ Overview
DarkNeuronAI is a professional Python library built for seamlessly loading and using both Machine Learning (ML) and Large Language Models (LLMs).
It automatically handles .pkl extensions for ML models, integrates with Hugging Face for LLMs, and detects hardware (CPU/GPU/MPS) automatically.
Developed by Gaurav Pandey (Mr. Def@ult) under the DarkNeuronAI organization.
โจ Features
โ
Unified interface for ML and LLM models
โ
Auto .pkl detection โ no need to type full filenames
โ
Works with both local and Hugging Face models
โ
Auto device selection (CPU / GPU / MPS)
โ
Vectorizer auto-loading for ML text models
โ
Simple and clean API โ no complex configs
โ
Ready for PyPI packaging and production use
๐งฉ Installation
Install via pip:
pip install darkneuronai
Install directly via GitHub:
pip install git+https://github.com/DarkNeuronAI/darkneuronai-python-library.git
๐ Usage of ML Model
from darkneuron import load_model
# Load spam detection model (auto adds .pkl)
spam_model = load_model("ml", {
"model_path": "darkneuron-spamdex-v1",
"vectorizer_path": "spamdex_vectorizer"
})
# Predict
print(spam_model.predict("Win a free iPhone now!"))
๐ Usage of LLM Model
from darkneuron import load_model
llm = load_model("llm", "DarkNeuronAI/darkneuron-chat-v1.1")
response = llm.generate("Explain quantum mechanics in simple terms.")
print(response)
๐ง API Reference
load_model(model_type, model_identifier)
| Parameter | Type | Description |
|---|---|---|
model_type |
str |
"ml" or "llm" |
model_identifier |
dict or str |
For ML: {"model_path": "spam_model", "vectorizer_path": "vectorizer"}For LLM: "DarkNeuronAI/darkneuron-chat-v1.1" |
๐ Folder Structure
darkneuron/
โโโ init.py
โโโ core/
โ โโโ base_model.py
โ โโโ ml_loader.py
โ โโโ llm_loader.py
โโโ tests/
โ โโโ test_ml_loader.py
โ โโโ test_llm_loader.py
โโโ utils/
โ โโโ device.py
โ โโโ logger.py
โโโ models/
โ โโโ darkneuron-spamdex-v1.pkl
โ โโโ spamdex_vectorizer.pkl
โ โโโ water_model.pkl
โโโ README.md
โโโ pyproject.toml
โโโ requirements.txt
๐งฐ Dependencies
- torch
- transformers
- joblib
- numpy
Install manually if needed:
pip install torch transformers joblib numpy
๐งโ๐ป Developer Info
Author: Gaurav Pandey (Mr. Def@ult)
Company: DarkNeuronAI
License: MIT
Version: 1.0.1
Email: darkneuronai.official@gmail.com
GitHub: github.com/DarkNeuron-AI
HuggingFace: huggingface.co/DarkNeuronAI
๐งฌ Future Updates
- Auto model/vectorizer detection from folder name
- Async model loading
- Built-in performance benchmarks
- CLI for quick inference (darkneuron run model input.txt)
๐ค Credits
Created by Gaurav Pandey (Mr. Def@ult)
Turning Data โ Intelligence โ Power
ยฉ 2025 DarkNeuronAI โ Advancing Emotionally Intelligent AI!
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
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 darkneuronai-1.0.1.tar.gz.
File metadata
- Download URL: darkneuronai-1.0.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c6f9aa0308ec664be0738996e43588796e4ac4ffb3b7e45dcdd82bffba86833
|
|
| MD5 |
83e1c23a1457e9ee019e069ca73c9986
|
|
| BLAKE2b-256 |
6cd6aa6293895caacf0962dfc118d0398a10192494d9130af72e516d9318e914
|
File details
Details for the file darkneuronai-1.0.1-py3-none-any.whl.
File metadata
- Download URL: darkneuronai-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817794f091d48886867c7f54b6923db962c632aaafaaeca76be1a6fec9aec181
|
|
| MD5 |
10efa877e169cee7e387b65472a5dd46
|
|
| BLAKE2b-256 |
5bb969ce50fc09568f7ca3de4fe8435386f6bb71359e78c55bbeaf52b7b31742
|