Quickstart Guide
Get started with Neurenix by building a simple neural network in just a few minutes. This guide will walk you through creating, training, and using a model.Make sure you have installed Neurenix before proceeding with this guide.
Your First Neural Network
Let’s create a simple feedforward neural network for classification:Building the Model
1
Define the Architecture
Create a sequential model with linear layers and activation functions
2
Initialize the Optimizer
Set up the Adam optimizer with a learning rate
3
Train on Data
Feed data through the model and update weights
4
Make Predictions
Use the trained model for inference
Training the Model
Making Predictions
Building an AI Agent
Neurenix specializes in agent-based AI. Here’s how to create a simple reinforcement learning agent:For real reinforcement learning environments, install the optional agents package:
pip install neurenix[agents]Using Hardware Acceleration
Neurenix automatically detects and uses available hardware:Hot-Swapping Devices
One of Neurenix’s unique features is runtime device switching:Working with Datasets
Neurenix provides DatasetHub for easy dataset loading:Model Quantization
Optimize your models for edge deployment:Model Export & Serving
Export your model to ONNX for deployment:The API server supports REST, WebSocket, and gRPC protocols for flexible deployment options.
Using the CLI
Neurenix includes a powerful command-line interface:Example: Complete Training Script
Here’s a complete example combining everything:Next Steps
Now that you’ve built your first model, explore more advanced features:API Reference
Explore the complete API documentation
Advanced Training
Learn about distributed training and optimization
Agent Systems
Build multi-agent reinforcement learning systems
Model Deployment
Deploy models to production environments
All code examples in this guide use real Neurenix APIs from version 2.0.1. For the latest updates, check the GitHub repository.