Run this model with HF Jobs
Run xraychen/squad-baseline 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/xraychen/squad-baseline. 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/xraychen/squad-baseline 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 xraychen/squad-baseline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xraychen/squad-baseline 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="xraychen/squad-baseline")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("xraychen/squad-baseline") model = AutoModelForQuestionAnswering.from_pretrained("xraychen/squad-baseline", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (10)
- .gitattributes+1
- config.jsonAdded+26
- eval_nbest_predictions.jsonAdded+3
- eval_null_odds.jsonAdded
- eval_predictions.jsonAdded
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+1
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+1
- vocab.txtAdded
24 unmodified lines25262724 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text24 unmodified lines2526272824 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zstandard filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texteval_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526{ "_name_or_path": "/home/ray_chen/CKPT/squad-baseline", "architectures": [ "BertForQuestionAnswering" ], "attention_probs_dropout_prob": 0.1, "classifier_dropout": null, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "bert", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.18.0", "type_vocab_size": 2, "use_cache": true, "vocab_size": 30522}123version https://git-lfs.github.com/spec/v1oid sha256:03a2cc1c04a1db70564ac9ac6262d97035ffda615d300f1e7c40ba4291a675b2size 56385614123version https://git-lfs.github.com/spec/v1oid sha256:7021bcc03e31068fe83bc0a486dd912b080c9df7db1ac57d56ccf2132c2752absize 4356431851{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}1{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "/home/ray_chen/CKPT/squad-baseline", "tokenizer_class": "BertTokenizer"}.gitattributes+1
config.jsonAdded+26
eval_nbest_predictions.jsonAdded+3
eval_null_odds.jsonAdded
eval_predictions.jsonAdded
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+1
tokenizer.jsonAdded
tokenizer_config.jsonAdded+1
vocab.txtAdded