๐Ÿš€ 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:

  1. Wait for training to complete - watch the real-time logs above
  2. Look for "โœ… TRAINING COMPLETE!" message
  3. Click the "๐Ÿ“ฅ Download Model" button that appears above
  4. Save the .pth file to your local machine
  5. 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