Skip to main content

🧠 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!

Metadata

Release files for darkneuronai 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for darkneuronai 1.0.2
File Size Uploaded Provenance
darkneuronai-1.0.2.tar.gz 1.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for darkneuronai 1.0.2
File Interpreter ABI Platform
darkneuronai-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / darkneuronai-1.0.2.tar.gz

Download URL darkneuronai-1.0.2.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2407592d21f728168f9c7ec282f9a7527ab14156bfca751a563493546480f006
BLAKE2b-256 checksum
How to use checksums
8c4b903531d50da6599192358521d612fced6e56d286b25eb2329413b576ffb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / darkneuronai-1.0.2-py3-none-any.whl

Download URL darkneuronai-1.0.2-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6071c23b7c43f611e61cd4c7a99cc539fc80c807befc07239a8079d9f4f03bec
BLAKE2b-256 checksum
How to use checksums
1ae7a2425098731e38b86a2da428cbe2c983e4bf7b54be1398645c45ff2e2eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Security for darkneuronai 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page