Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-SplinterForQuestionAnswering 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-SplinterForQuestionAnswering. 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-SplinterForQuestionAnswering 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-SplinterForQuestionAnswering 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-SplinterForQuestionAnswering 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-SplinterForQuestionAnswering")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-SplinterForQuestionAnswering") model = AutoModelForQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-SplinterForQuestionAnswering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit 路
97d3c24
1
Parent(s): e60e3e7
Upload tiny models for SplinterForQuestionAnswering
Browse filesFiles changed (6)
- config.jsonAdded+23
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+10
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+19
- vocab.txtAdded
1234567891011121314151617181920212223{ "architectures": [ "SplinterForQuestionAnswering" ], "attention_probs_dropout_prob": 0.1, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 32, "initializer_range": 0.02, "intermediate_size": 37, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "splinter", "num_attention_heads": 4, "num_hidden_layers": 5, "pad_token_id": 0, "question_token_id": 104, "torch_dtype": "float32", "transformers_version": "4.28.0.dev0", "type_vocab_size": 16, "use_cache": true, "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:4785598da2abebc0a500a978836d14db42041ad5c88542bbd2d4a47182adefbesize 397892512345678910{ "additional_special_tokens": [ "[QUESTION]" ], "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}12345678910111213141516171819{ "additional_special_tokens": [ "[QUESTION]" ], "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_basic_tokenize": true, "do_lower_case": false, "mask_token": "[MASK]", "model_max_length": 512, "never_split": null, "pad_token": "[PAD]", "sep_token": "[SEP]", "special_tokens_map_file": "/home/runner/.cache/huggingface/hub/models--tau--splinter-base/snapshots/d6bc929405a27b7502bbab767f615c89b0e52373/special_tokens_map.json", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "SplinterTokenizer", "unk_token": "[UNK]"}config.jsonAdded+23
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+10
tokenizer.jsonAdded
tokenizer_config.jsonAdded+19
vocab.txtAdded