Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-XLMForTokenClassification 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/hf-tiny-model-private/tiny-random-XLMForTokenClassification. 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/hf-tiny-model-private/tiny-random-XLMForTokenClassification 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 hf-tiny-model-private/tiny-random-XLMForTokenClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-XLMForTokenClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="hf-tiny-model-private/tiny-random-XLMForTokenClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-XLMForTokenClassification") model = AutoModelForTokenClassification.from_pretrained("hf-tiny-model-private/tiny-random-XLMForTokenClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
6750966
1
Parent(s): f3f6c51
Upload tiny models for XLMForTokenClassification
Browse filesFiles changed (8)
- .gitattributes+1
- config.jsonAdded+45
- merges.txtAdded
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+20
- tf_model.h5Added+3
- tokenizer_config.jsonAdded+27
- vocab.jsonAdded+3
31 unmodified lines32333431 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text31 unmodified lines3233343531 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textvocab.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "_name_or_path": "tiny_models/xlm/XLMForTokenClassification", "architectures": [ "XLMForTokenClassification" ], "asm": false, "attention_dropout": 0.1, "bos_index": 0, "bos_token_id": 0, "causal": false, "dropout": 0.1, "emb_dim": 32, "embed_init_std": 0.02209708691207961, "end_n_top": 5, "eos_index": 1, "gelu_activation": true, "init_std": 0.02, "initializer_range": 0.02, "is_encoder": true, "lang_id": 0, "layer_norm_eps": 1e-12, "mask_index": 5, "mask_token_id": 5, "max_position_embeddings": 512, "model_type": "xlm", "n_heads": 4, "n_langs": 2, "n_layers": 5, "n_special": 0, "pad_index": 2, "pad_token_id": 2, "sinusoidal_embeddings": false, "start_n_top": 5, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "last", "summary_use_proj": true, "torch_dtype": "float32", "transformers_version": "4.28.0.dev0", "unk_index": 3, "use_lang_emb": true, "use_proj": true, "vocab_size": 30145}123version https://git-lfs.github.com/spec/v1oid sha256:36d56e53c034fc2e9c541146eb835968fd73d7dd1478282938051f6e87c9512esize 42101691234567891011121314151617181920{ "additional_special_tokens": [ "<special0>", "<special1>", "<special2>", "<special3>", "<special4>", "<special5>", "<special6>", "<special7>", "<special8>", "<special9>" ], "bos_token": "<s>", "cls_token": "</s>", "mask_token": "<special1>", "pad_token": "<pad>", "sep_token": "</s>", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:efe8fc22e9a2937184ef5acf94b8cb3fd53275d4adf508df7a3886516f493519size 4280560123456789101112131415161718192021222324252627{ "additional_special_tokens": [ "<special0>", "<special1>", "<special2>", "<special3>", "<special4>", "<special5>", "<special6>", "<special7>", "<special8>", "<special9>" ], "bos_token": "<s>", "clean_up_tokenization_spaces": true, "cls_token": "</s>", "do_lowercase_and_remove_accent": true, "id2lang": null, "lang2id": null, "mask_token": "<special1>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "special_tokens_map_file": null, "tokenizer_class": "XLMTokenizer", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:9eb700423b2604e555abf45cf9912bc16015c7f3f9d9d25fcff95c19cd9e15cfsize 646176.gitattributes+1
config.jsonAdded+45
merges.txtAdded
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+20
tf_model.h5Added+3
tokenizer_config.jsonAdded+27
vocab.jsonAdded+3