Token Classification
Transformers
ONNX
Safetensors
English
Japanese
Chinese
bert
anime
filename-parsing
Eval Results (legacy)
Run this model with HF Jobs
Run ModerRAS/AniFileBERT 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/ModerRAS/AniFileBERT. 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/ModerRAS/AniFileBERT 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 ModerRAS/AniFileBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModerRAS/AniFileBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ModerRAS/AniFileBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ModerRAS/AniFileBERT") model = AutoModelForTokenClassification.from_pretrained("ModerRAS/AniFileBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Document AniFileBERT maintenance workflow
Browse filesFiles changed (3)
- ANDROID.md+6-5
- MAINTENANCE.mdAdded+111
- README.md+10
123456789101 unmodified line1213141516171811 unmodified lines30313233343536# Android export and runtimeThis folder is a normal MiruPlay subdirectory, not a Git submodule. It containsthe Python training pipeline plus an ONNX export path for Android.For the full scanner integration notes, file-vs-folder behavior, and devicetest procedure, see [`../../docs/anime-filename-parser.md`](../../docs/anime-filename-parser.md).## Export1 unmodified line```bashpython -m pip install -r requirements.txtpython export_onnx.py --model-dir checkpoints/final --android-assets-dir ../../scraper/src/main/assets/anime_parser```The exporter writes:11 unmodified lines- `logits`: `float32[1,64,15]`The current export was verified against PyTorch with max absolute logitsdifference `2.5033950805664062e-05`.## Runtime12345678910111 unmodified line1314151617181911 unmodified lines31323334353637# Android export and runtimeThis repository is used by MiruPlay as a Git submodule at`tools/anime_parser`. It contains the Python training pipeline plus an ONNXexport path for Android.For the full scanner integration notes, file-vs-folder behavior, and devicetest procedure, see MiruPlay's `docs/anime-filename-parser.md`.## Export1 unmodified line```bashpython -m pip install -r requirements.txtpython export_onnx.py --model-dir checkpoints/dmhy-finetune/final --android-assets-dir ../../scraper/src/main/assets/anime_parser```The exporter writes:11 unmodified lines- `logits`: `float32[1,64,15]`The current export was verified against PyTorch with max absolute logitsdifference `1.621246337890625e-05`.## Runtime
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111# AniFileBERT Maintenance
This repository is the standalone Hugging Face model repo used by MiruPlay as`tools/anime_parser`.
## Related Repositories
| Repository | URL | Purpose ||------------|-----|---------|| AniFileBERT | `https://huggingface.co/ModerRAS/AniFileBERT` | Model, training scripts, ONNX export || AnimeName | `https://huggingface.co/datasets/ModerRAS/AnimeName` | Training datasets and manifests || MiruPlay | `https://github.com/ModerRAS/MiruPlay` | Android app and runtime integration |
Nested structure:
```textAniFileBERT datasets/AnimeName -> ModerRAS/AnimeName```
## Clone
```bashgit clone --recursive https://huggingface.co/ModerRAS/AniFileBERT```
After a normal clone:
```bashgit submodule update --init --recursive```
## Dataset Waterline
Current DMHY snapshot:
```textlast_file_id: 689304next_min_id: 689305labeled_samples: 263042mixed_train_samples: 363042```
The authoritative dataset files live in `datasets/AnimeName`.
## Train
```bashpython -m pip install -r requirements.txtpython train.py \ --data-file datasets/AnimeName/mixed_train.jsonl \ --vocab-file datasets/AnimeName/vocab.json \ --save-dir checkpoints/dmhy-finetune \ --init-model-dir . \ --epochs 1 \ --batch-size 128 \ --learning-rate 0.0003 \ --warmup-steps 300 \ --seed 42```
## Publish a New Checkpoint
Copy the final checkpoint to the repository root:
```powershellCopy-Item checkpoints/dmhy-finetune/final/config.json . -ForceCopy-Item checkpoints/dmhy-finetune/final/model.safetensors . -ForceCopy-Item checkpoints/dmhy-finetune/final/tokenizer_config.json . -ForceCopy-Item checkpoints/dmhy-finetune/final/training_args.bin . -ForceCopy-Item checkpoints/dmhy-finetune/final/vocab.json . -Force```
Then commit and push:
```bashgit add .git commit -m "Update AniFileBERT checkpoint"git push origin main```
## Update the Dataset Submodule
After pushing new files to `ModerRAS/AnimeName`, update the nested pointer:
```bashgit submodule update --remote datasets/AnimeNamegit add datasets/AnimeNamegit commit -m "Update AnimeName dataset pointer"git push origin main```
## Update MiruPlay
From the MiruPlay root:
```bashgit submodule update --remote --recursive tools/anime_parsergit add tools/anime_parsergit commit -m "Update AniFileBERT submodule"git push origin master```
If a new ONNX export changed Android runtime assets, also stage:
```textscraper/src/main/assets/anime_parser/anime_filename_parser.onnxscraper/src/main/assets/anime_parser/config.jsonscraper/src/main/assets/anime_parser/vocab.json```
127 unmodified lines128129130131132133127 unmodified lines- `export_onnx.py`: ONNX export for Android integration- `exports/`: exported ONNX model and metadata- `data/dmhy/*.manifest.json`: dataset waterlines and counts127 unmodified lines128129130131132133134135136137138139140141142143127 unmodified lines- `export_onnx.py`: ONNX export for Android integration- `exports/`: exported ONNX model and metadata- `data/dmhy/*.manifest.json`: dataset waterlines and counts- `datasets/AnimeName/`: nested dataset submodule## Maintenance NotesMiruPlay tracks this repository as `tools/anime_parser`, and this repositorytracks `ModerRAS/AnimeName` as `datasets/AnimeName`. After updating eitherrepo, remember to commit the submodule pointer in the parent repo.For the full maintenance workflow, see MiruPlay's`docs/anifilebert-maintenance.md`.
ANDROID.md+6-5
MAINTENANCE.mdAdded+111
README.md+10