๐ LayoutLMv3 Fine-Tuning on Hugging Face Spaces
Upload your Label Studio JSON file, set your hyperparameters, and click Train Model to fine-tune the LayoutLMv3 model.
โ ๏ธ IMPORTANT - Free Tier Users:
- Download your model IMMEDIATELY after training completes!
- The model file is temporary and will be deleted when the Space restarts.
- A download button will appear below once training is complete.
- Real-time logs will stream during training so you can monitor progress.
โฑ๏ธ Timeout Note: Training may timeout on free tier. Consider reducing epochs or batch size for faster training.
๐ Dataset Upload
โ๏ธ Training Parameters
1 16
1 10
128 512
๐ Training Progress (Real-Time Logs)
โฌ๏ธ Download Trained Model
๐ฅ Download Instructions:
- Wait for training to complete - watch the real-time logs above
- Look for "โ TRAINING COMPLETE!" message
- Click the "๐ฅ Download Model" button that appears above
- Save the
.pthfile to your local machine - Do this immediately - file is temporary and will be deleted on Space restart!
๐ง Troubleshooting:
- If download button doesn't appear, check the logs for errors
- Try reducing epochs or batch size if timeout occurs
- Ensure your JSON file is properly formatted
- Logs update in real-time - you can monitor training progress
๐ About
This Space fine-tunes LayoutLMv3 with CRF for document understanding tasks including:
- Questions, Options, Answers
- Section Headings
- Passages
Model Details: LayoutLMv3-base + CRF layer for sequence labeling
Features:
- โ Real-time log streaming during training
- โ Progress monitoring with epoch/batch updates
- โ Immediate model download after completion
- โ Automatic file preparation for download