Run this model with HF Jobs
Run ift/handwriting_forms on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ift/handwriting_forms. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ift/handwriting_forms on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ift/handwriting_forms with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ift/handwriting_forms with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ift/handwriting_forms", device_map="auto") - Notebooks
- Google Colab
- Kaggle
5ae47d4be3db5e6e256984018c5ebf793c4a6d327f0a14dfbd147a7ff7cb491c
Browse filesFiles changed (6)
- added_tokens.jsonAdded+14
- artifacts.ckptAdded+3
- config.jsonAdded+24
- config.yamlAdded+29
- events.out.tfevents.1693942211.phy-deino.physics.uu.se.65476.0Added+3
- hparams.yamlAdded+1
1234567891011121314{ "</s_CITY>": 57527, "</s_DATE>": 57525, "</s_STATE>": 57529, "</s_ZIP>": 57531, "<s_>": 57533, "<s_CITY>": 57528, "<s_DATE>": 57526, "<s_STATE>": 57530, "<s_ZIP>": 57532, "<s_iitcdip>": 57523, "<s_synthdog>": 57524, "<sep/>": 57522}123version https://git-lfs.github.com/spec/v1oid sha256:1b49ee8f3386da5f52c66900b064faecae661e83f165d58a5b3542173bdfd431size 1608922140123456789101112131415161718192021222324{ "_name_or_path": "naver-clova-ix/donut-base", "align_long_axis": false, "architectures": [ "DonutModel" ], "decoder_layer": 4, "encoder_layer": [ 2, 2, 14, 2 ], "input_size": [ 1280, 960 ], "max_length": 768, "max_position_embeddings": 768, "model_type": "donut", "torch_dtype": "float32", "transformers_version": "4.25.1", "window_size": 10}1234567891011121314151617181920212223242526272829resume_from_checkpoint_path: Noneresult_path: './result'pretrained_model_name_or_path: 'naver-clova-ix/donut-base'dataset_name_or_paths: - 'dataset/training/nist_form/'sort_json_key: Falsetrain_batch_sizes: - 2val_batch_sizes: - 2input_size: - 1280 - 960max_length: 768align_long_axis: Falsenum_nodes: 1seed: 2022lr: 3e-05warmup_steps: 300num_training_samples_per_epoch: 800max_epochs: 30max_steps: -1num_workers: 8val_check_interval: 1.0check_val_every_n_epoch: 3gradient_clip_val: 1.0verbose: Trueexp_name: 'train_nist'exp_version: '20230905_212956'123version https://git-lfs.github.com/spec/v1oid sha256:91a161367070b3126153f3a0dd2de6590df20338cf21d051a529eb206d40d85dsize 312541{}added_tokens.jsonAdded+14
artifacts.ckptAdded+3
config.jsonAdded+24
config.yamlAdded+29
events.out.tfevents.1693942211.phy-deino.physics.uu.se.65476.0Added+3
hparams.yamlAdded+1