Views
No views yet
python train_realistic.py --sample_data --scale quick_test --output_dir ./models/deepseekmini-samplepython train_realistic.py --prepare_data --scale small_scale --output_dir ./models/deepseekmini-distilledpython evaluate_model.py --model_path ./models/deepseekmini-distilled| Scale | Steps | Batch Size | Time Est. | Description |
|---|---|---|---|---|
quick_test | 100 | 2 | ~25min | Quick verification run |
small_scale | 1,000 | 4 | ~7h | Initial quality improvement |
medium_scale | 5,000 | 8 | ~62h | Good quality results |
full_scale | 20,000 | 16 | ~500h | Best quality (production) |
1python train_realistic.py \
2 --scale medium_scale \
3 --max_steps 3000 \
4 --batch_size 6 \
5 --learning_rate 1e-5 \
6 --data_jsonl ./datasets/custom_data.jsonl \
7 --output_dir ./models/custom-distilled1python evaluate_model.py \
2 --model_path ./models/deepseekmini-distilled \
3 --compare_with /home/user/DeepSeekMinipython prepare_datasets.py --output_dir ./datasets --max_samples 15000distill/
├── distill.py # Core distillation logic (fixed for DeepSeek)
├── train_realistic.py # Enhanced training script
├── prepare_datasets.py # Dataset preparation
├── evaluate_model.py # Model evaluation
├── datasets/ # Downloaded datasets
│ ├── alpaca.jsonl
│ ├── open_orca.jsonl
│ ├── dolly.jsonl
│ ├── oasst1.jsonl
│ └── combined_training_data.jsonl
└── models/ # Trained models
└── deepseekmini-distilled/
├── config.json
├── pytorch_model.bin
├── tokenizer.json
└── training_summary.jsonquick_test or small_scale first to verify everything works1# Reduce batch size and increase gradient accumulation
2python train_realistic.py --scale small_scale --batch_size 2 --gradient_accumulation_steps 81# Enable gradient checkpointing to trade compute for memory
2python train_realistic.py --gradient_checkpointingsmall_scale to medium_scale for better qualitytraining_summary.json with: