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
colab: onnx导出改为非阻塞+补全onnxscript
Browse files75 unmodified lines767778797980818230 unmodified lines11311411511611611711811811912012112112212312412512212312412512612712812913013175 unmodified linesprint("STEP 3: Install dependencies")print("=" * 60)# Colab comes with PyTorch + CUDA pre-installed. Just install the extras.run("pip install transformers accelerate seqeval onnx onnxruntime")run("pip install transformers accelerate seqeval onnx onnxruntime onnxscript")
# ── 4. Verify GPU ──────────────────────────────────────────────print("\n" + "=" * 60)30 unmodified lines f"--no-shuffle")
# ── 7. Export ONNX ─────────────────────────────────────────────# ── 7. Export ONNX (optional) ──────────────────────────────────print("\n" + "=" * 60)print("STEP 7: Export ONNX (optional)")print("STEP 7: Export ONNX (optional — skip if it fails)")print("=" * 60)ONNX_OUT = os.path.join(SAVE_DIR, "..", "anime_filename_parser.onnx")try:run( f"python export_onnx.py " f"--model-dir {SAVE_DIR}/final " f"--output {ONNX_OUT}") run( f"python export_onnx.py " f"--model-dir {SAVE_DIR}/final " f"--output {ONNX_OUT}" )except Exception as e: print(f"[WARN] ONNX export skipped: {e}")
# ── 8. Summary ─────────────────────────────────────────────────print("\n" + "=" * 60)colab_train.py+11-8