Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run Yasu-Okuda/YataGarasu-TextClassification 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/Yasu-Okuda/YataGarasu-TextClassification. 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/Yasu-Okuda/YataGarasu-TextClassification 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 Yasu-Okuda/YataGarasu-TextClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yasu-Okuda/YataGarasu-TextClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Yasu-Okuda/YataGarasu-TextClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Yasu-Okuda/YataGarasu-TextClassification") model = AutoModelForSequenceClassification.from_pretrained("Yasu-Okuda/YataGarasu-TextClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (5)
- config.jsonAdded+85
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+25
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ "architectures": [ "ModernBertForSequenceClassification" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "classifier_activation": "gelu", "classifier_bias": false, "classifier_dropout": 0.0, "classifier_pooling": "cls", "cls_token_id": 6, "decoder_bias": true, "deterministic_flash_attn": false, "dtype": "float32", "embedding_dropout": 0.0, "eos_token_id": 2, "global_attn_every_n_layers": 3, "gradient_checkpointing": false, "hidden_activation": "gelu", "hidden_size": 512, "id2label": { "0": "SFW", "1": "NSFW" }, "initializer_cutoff_factor": 2.0, "initializer_range": 0.02, "intermediate_size": 2048, "label2id": { "NSFW": 1, "SFW": 0 }, "layer_norm_eps": 1e-05, "layer_types": [ "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention" ], "local_attention": 128, "max_position_embeddings": 8192, "mlp_bias": false, "mlp_dropout": 0.0, "model_type": "modernbert", "norm_bias": false, "norm_eps": 1e-05, "num_attention_heads": 8, "num_hidden_layers": 19, "pad_token_id": 3, "position_embedding_type": "rope", "problem_type": "single_label_classification", "repad_logits_with_grad": false, "rope_parameters": { "full_attention": { "rope_theta": 160000.0, "rope_type": "default" }, "sliding_attention": { "rope_theta": 10000.0, "rope_type": "default" } }, "sep_token_id": 4, "sparse_pred_ignore_index": -100, "sparse_prediction": false, "tie_word_embeddings": true, "transformers_version": "5.0.0", "use_cache": false, "vocab_size": 102400}123version https://git-lfs.github.com/spec/v1oid sha256:4fa36ea1d12bd15150399b3ad60f39976ebafd76c9cb9ef79a67d58df369ad18size 52962921612345678910111213141516171819202122232425{ "add_dummy_prefix_space": false, "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<cls>", "do_lower_case": false, "eos_token": "</s>", "extra_ids": 0, "is_local": false, "keep_accents": true, "legacy": false, "mask_token": "<mask>", "model_max_length": 1000000000000000019884624838656, "model_specific_special_tokens": {}, "pad_token": "<pad>", "padding_side": "right", "sep_token": "<sep>", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "TokenizersBackend", "unk_token": "<unk>", "use_default_system_prompt": false}123version https://git-lfs.github.com/spec/v1oid sha256:dbac17576aea2797b59a5a371e413dd28e359b480b0070c36e7d65ff07beb830size 5265config.jsonAdded+85
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+25
training_args.binAdded+3