Then open your browser and navigate to http://localhost:6006 to view training metrics.
Training logs are also saved in CSV format in the logs directory for backup.
Training Parameters
You can customize the training by adjusting these parameters:
--batch_size: Batch size for training (default: 32)
--epochs: Number of training epochs (default: 10)
--max_length: Maximum sequence length (default: 512)
--embed_dim: Embedding dimension (default: 256)
--num_heads: Number of attention heads (default: 8)
--ff_dim: Feed-forward dimension (default: 512)
--num_transformer_blocks: Number of transformer blocks (default: 6)
--dropout_rate: Dropout rate (default: 0.1)
--learning_rate: Learning rate (default: 1e-4)
--checkpoint_dir: Directory to save model checkpoints (default: "checkpoints")
--log_dir: Directory to save training logs (default: "logs")
Project Structure
dakitari-instruct/
├── data/
│ └── preprocess.py # Data preprocessing utilities
├── model/
│ └── transformer_model.py # Model architecture
├── train.py # Training script
├── requirements.txt # Project dependencies
└── README.md # This file
Hardware Requirements
Minimum: 16GB RAM, NVIDIA GPU with 8GB VRAM
Recommended: 32GB RAM, NVIDIA GPU with 16GB+ VRAM
Dataset Sources
The model is trained on:
PubMed abstracts
Medical questions and answers pairs
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a new Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Thanks to the HuggingFace team for the transformers library
Thanks to the TensorFlow team for the excellent framework
Thanks to the medical community for the valuable datasets
Now you can track your training progress locally using TensorBoard, which provides:
Real-time metrics visualization
Learning rate tracking
Model graph visualization
Histogram of weights and biases
The training metrics are also saved in CSV format as a backup, which you can analyze using any spreadsheet software or data analysis tools.
To view the training progress: