Downloads · 30 days
0
AGofficial/AgGPT18
AgGPT18 is a machine learning model from AGofficial. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Sep 20, 2025
Repo size
84 MB
Likes
1
Public
Click a slice to open those files.
.txt49.5 MB · 55%
From the Hugging Face model README
license: mit
language:
AgGPT-18 is a revolutionary AI training framework that implements a Scalable Feather Architecture for building efficient, modular AI models. This system breaks down large training datasets into manageable mini-models, each stored in highly optimized Feather format files for lightning-fast loading and inference.
AgGPT-18/
├── train.py # Main training script with multi-corpora support
├── chat.py # Interactive chat interface
├── feather.py # Feather format model management
├── models/ # Trained mini-models (.feather files)
├── readable_weights/ # Human-readable YAML model exports
├── training_data/ # Training corpora files
│ ├── corpora.txt # Primary training dataset
│ └── corpora2.txt # Secondary training dataset
├── banner.png # Project banner
└── README.md # This file
Clone the repository:
git clone https://github.com/your-username/AgGPT-18.git
cd AgGPT-18
Install dependencies:
pip install pandas pyarrow tqdm pyyaml
Prepare training data:
Place your training data in the training_data/ directory. The format should be:
user: [user input]
<pad>
ai: [ai response]
<eos>
Train on multiple corpora:
python train.py
The training process will:
Start an interactive chat session:
python chat.py
Features of the chat interface:
AgGPT-18 uses Apache Feather format for model storage, providing:
The training system creates specialized mini-models that:
Advanced pattern recognition includes:
Training data should follow this format:
user: Hello, how are you?
<pad>
ai: I'm doing well, thank you! How can I help you today?
<eos>
user: What's the weather like?
<pad>
ai: I don't have access to real-time weather data, but I'd be happy to help you find weather information from a reliable source.
<eos>
user: - Marks user input<pad> - Padding token (optional)ai: - Marks AI response<eos> - End of sequence markerKey parameters in train.py:
target_size_mb: Target size for training chunks (default: 5MB)chunk_size: Number of training pairs per chunkmerge_similar: Enable automatic model merging (default: True)confidence_threshold: Minimum confidence for pattern matchingAdjustable in the MiniModelTrainer class:
confidence_threshold: Pattern confidence thresholdmerge_threshold: Similarity threshold for model mergingmax_context_length: Maximum conversation context windowCore model management class:
manager = FeatherManager("models/")
manager.save_mini_model(model_data, model_id)
model = manager.load_mini_model(model_id)
all_models = manager.load_all_models()
Main training interface:
trainer = AgGPTTrainer()
trainer.train_multiple_corpora(["data1.txt", "data2.txt"])
trainer.train("single_corpus.txt")
Chat interface:
generator = ResponseGenerator(feather_manager)
generator.load_models()
response = generator.generate_response("Hello!")
training_data/ directorymain() functionpython train.pyModify the PatternExtractor class to add:
Extend the ResponseGenerator class for:
We welcome contributions! Please:
Areas for contribution:
Training hangs or crashes:
Poor response quality:
Slow performance:
This project is licensed under the MIT License – see the LICENSE file for details.
AG - Creator and Lead Developer
For questions, suggestions, or collaboration opportunities, please open an issue or contact the development team.
"Relentless. Scalable. True Intelligence." - AgGPT-18