Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-XLMForQuestionAnsweringSimple 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-XLMForQuestionAnsweringSimple. 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-XLMForQuestionAnsweringSimple 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-XLMForQuestionAnsweringSimple 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-XLMForQuestionAnsweringSimple with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="hf-tiny-model-private/tiny-random-XLMForQuestionAnsweringSimple")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-XLMForQuestionAnsweringSimple") model = AutoModelForQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-XLMForQuestionAnsweringSimple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
cbd1b91
1
Parent(s): c09dd26
Upload tiny models for XLMForQuestionAnsweringSimple
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/XLMForQuestionAnsweringSimple", "architectures": [ "XLMForQuestionAnsweringSimple" ], "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:4736ee515ac15fcae40d98c3aff8731b217f5653b1be816d60de740ce04ae0b0size 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:a0bccaf0abd0771b156dda1766ae4f92e8573ba3b296e2f1871ff7e442b4f709size 4279536123456789101112131415161718192021222324252627{ "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