Instructions to use ZYW/test-squad-trained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZYW/test-squad-trained 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="ZYW/test-squad-trained")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("ZYW/test-squad-trained") model = AutoModelForQuestionAnswering.from_pretrained("ZYW/test-squad-trained", device_map="auto") - Notebooks
- Google Colab
- Kaggle
add model
Browse filesFiles changed (3)
- README.md+55
- config.jsonAdded+24
- pytorch_model.binAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455---model-index:- name: test-squad-trained---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># test-squad-trainedThis model was trained from scratch on an unkown dataset.It achieves the following results on the evaluation set:- Loss: 1.2026## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 3### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:-----:|:---------------:|| 0.988 | 1.0 | 5486 | 1.1790 || 0.7793 | 2.0 | 10972 | 1.2026 || 0.8068 | 3.0 | 16458 | 1.2026 |### Framework versions- Transformers 4.6.1- Pytorch 1.8.1+cu101- Datasets 1.6.2- Tokenizers 0.10.3
123456789101112131415161718192021222324{ "_name_or_path": "distilbert-base-multilingual-cased", "activation": "gelu", "architectures": [ "DistilBertForQuestionAnswering" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "initializer_range": 0.02, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "output_past": true, "pad_token_id": 0, "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "transformers_version": "4.6.1", "vocab_size": 119547}123version https://git-lfs.github.com/spec/v1oid sha256:024798d25cbc48d2fc6daaf24490b8d1d36dff09d36202c7aff5ef910852cb58size 538984901README.md+55
config.jsonAdded+24
pytorch_model.binAdded+3