Skip to main content

DarkNeuronAI's unified ML and LLM library

Project description

๐Ÿง  DarkNeuronAI

Unified ML & LLM Loader โ€” simple, smart, and powerful.

DarkNeuronAI HuggingFace


๐Ÿš€ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darkneuronai-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

darkneuronai-1.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for darkneuronai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2c6f9aa0308ec664be0738996e43588796e4ac4ffb3b7e45dcdd82bffba86833
MD5 83e1c23a1457e9ee019e069ca73c9986
BLAKE2b-256 6cd6aa6293895caacf0962dfc118d0398a10192494d9130af72e516d9318e914

See more details on using hashes here.

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

Hashes for darkneuronai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 817794f091d48886867c7f54b6923db962c632aaafaaeca76be1a6fec9aec181
MD5 10efa877e169cee7e387b65472a5dd46
BLAKE2b-256 5bb969ce50fc09568f7ca3de4fe8435386f6bb71359e78c55bbeaf52b7b31742

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