Skip to main content
Prerequisites:
  • NVIDIA GPU with 8GB or more VRAM
  • Python environment
  • Git

Development Setup

1. Clone the Repository

2. Install Dependencies

Model Development

Data Generation

The first step in customizing InternTA is preparing the training data. We support two types of fine-tuning data:
  • Direct Q&A data
  • Guided Q&A data
  1. Compile a question bank including:
  • Post-class thought questions
  • Key terms from the appendix
  • Fundamental concept knowledge
  1. Search for corresponding answers in the textbook
  2. Organize answers into a response database:
  • Direct answers for key terms
  • Guided responses for thought questions

Model Fine-tuning

1

Verify Training Data

Check for the presence of training data:
2

Start Fine-tuning

Run the training script:
This will use fine-tune the base DeepSeek model.
3

Check Training Progress

Monitor the training directory:
Look for weight directories named pth_$NUM_EPOCH
4

Merge Model Weights

Testing and Evaluation

Interactive Testing

Test your model changes using the chat interface:

Automated Evaluation

Run the evaluation suite to measure model performance:
This will:
  1. Generate responses for test cases
  2. Calculate ROUGE similarity scores
  3. Output results to test_results.csv

Troubleshooting

If you encounter GPU memory errors:
  1. Reduce batch size in training configuration
  2. Use gradient checkpointing
  3. Ensure no other processes are using GPU memory
If data generation fails:
  1. Check input file formats
  2. Verify textbook content is properly formatted
  3. Ensure sufficient disk space

Contributing

We welcome contributions to InternTA! Please:
  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request
For major changes, please open an issue first to discuss what you would like to change.

Support

If you need help during development:
  1. Check the GitHub Issues
  2. Review the API Documentation
  3. Contact the development team at dev@kongfoo.cn