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.2 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.2.tar.gz (1.5 MB 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.2-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file darkneuronai-1.0.2.tar.gz.

File metadata

  • Download URL: darkneuronai-1.0.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for darkneuronai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2407592d21f728168f9c7ec282f9a7527ab14156bfca751a563493546480f006
MD5 09c3cb78e9434fcb7fc3d62d35263300
BLAKE2b-256 8c4b903531d50da6599192358521d612fced6e56d286b25eb2329413b576ffb8

See more details on using hashes here.

File details

Details for the file darkneuronai-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: darkneuronai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6071c23b7c43f611e61cd4c7a99cc539fc80c807befc07239a8079d9f4f03bec
MD5 3f99e180384b77b030f7f54ab2d4f000
BLAKE2b-256 1ae7a2425098731e38b86a2da428cbe2c983e4bf7b54be1398645c45ff2e2eaf

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