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
提高训练速度并使用GPU进行训练
Browse files33 unmodified lines3435363738394033 unmodified lines# Systemdevice: str = "cpu"num_workers: int = 0save_dir: str = "./checkpoints"log_interval: int = 10033 unmodified lines3435363738394033 unmodified lines# Systemdevice: str = "cpu"num_workers: int = 4save_dir: str = "./checkpoints"log_interval: int = 100
216 unmodified lines217218219220221222223224225226227228229216 unmodified lineslearning_rate=config.learning_rate,weight_decay=config.weight_decay,warmup_steps=config.warmup_steps,use_cpu=True,report_to="none",save_total_limit=2,load_best_model_at_end=True,metric_for_best_model="f1",greater_is_better=True,dataloader_num_workers=config.num_workers,)# Data collator216 unmodified lines217218219220221222223224225226227228229230216 unmodified lineslearning_rate=config.learning_rate,weight_decay=config.weight_decay,warmup_steps=config.warmup_steps,use_cpu=False,report_to="none",save_total_limit=2,load_best_model_at_end=True,metric_for_best_model="f1",greater_is_better=True,dataloader_num_workers=config.num_workers,fp16=True)# Data collator
config.py+1-1
train.py+2-1