Run this model with HF Jobs
Run deepset/gelectra-base-germanquad 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/deepset/gelectra-base-germanquad. 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/deepset/gelectra-base-germanquad 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 deepset/gelectra-base-germanquad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deepset/gelectra-base-germanquad 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="deepset/gelectra-base-germanquad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("deepset/gelectra-base-germanquad") model = AutoModelForQuestionAnswering.from_pretrained("deepset/gelectra-base-germanquad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ubuntu commited on
Commit ·
87fe3a3
1
Parent(s): fa5ca41
init
Browse filesFiles changed (6)
- config.jsonAdded+28
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+1
- tf_model.h5Added+3
- tokenizer_config.jsonAdded+1
- vocab.txtAdded
12345678910111213141516171819202122232425262728{ "_name_or_path": "../saved_models/gelectra-base-germanquad", "architectures": [ "ElectraForQuestionAnswering" ], "attention_probs_dropout_prob": 0.1, "embedding_size": 768, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "language": "english", "layer_norm_eps": 1e-12, "max_position_embeddings": 512, "model_type": "electra", "name": "Electra", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "position_embedding_type": "absolute", "summary_activation": "gelu", "summary_last_dropout": 0, "summary_type": "first", "summary_use_proj": false, "type_vocab_size": 2, "vocab_size": 31102}123version https://git-lfs.github.com/spec/v1oid sha256:9dcf83684e01e86c54d97c17207a377edfd6aacf4f2ab9133bc5e4f3196cc396size 4374414631{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}123version https://git-lfs.github.com/spec/v1oid sha256:e56f0b261de9785fd79b980564772606e0313c799147a3cdd776f92187ffa36dsize 4376208401{"do_lower_case": false, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": false, "max_len": 512, "special_tokens_map_file": null, "name_or_path": "../saved_models/gelectraqa-base-20210413formulate", "do_basic_tokenize": true, "never_split": null}config.jsonAdded+28
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+1
tf_model.h5Added+3
tokenizer_config.jsonAdded+1
vocab.txtAdded