Instructions to use ramkrish120595/debug_seq2seq_squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ramkrish120595/debug_seq2seq_squad 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="ramkrish120595/debug_seq2seq_squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("ramkrish120595/debug_seq2seq_squad") model = AutoModelForQuestionAnswering.from_pretrained("ramkrish120595/debug_seq2seq_squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ramkrish120595/debug_seq2seq_squad: direct link, hf CLI and curl.
- Browser
- Download file 798 Bytes
-
https://huggingface.co/ramkrish120595/debug_seq2seq_squad/resolve/main/config.json
- Command line
-
hf download hf://ramkrish120595/debug_seq2seq_squad/config.json
-
curl -L -o config.json https://huggingface.co/ramkrish120595/debug_seq2seq_squad/resolve/main/config.json
798 Bytes
| { | |
| "_name_or_path": "bigscience/bloom-560m", | |
| "apply_residual_connection_post_layernorm": false, | |
| "architectures": [ | |
| "BloomForQuestionAnswering" | |
| ], | |
| "attention_dropout": 0.0, | |
| "attention_softmax_in_fp32": true, | |
| "bias_dropout_fusion": true, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_dropout": 0.0, | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "masked_softmax_fusion": true, | |
| "model_type": "bloom", | |
| "n_head": 16, | |
| "n_inner": null, | |
| "n_layer": 24, | |
| "offset_alibi": 100, | |
| "pad_token_id": 3, | |
| "pretraining_tp": 1, | |
| "skip_bias_add": true, | |
| "skip_bias_add_qkv": false, | |
| "slow_but_exact": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.32.0.dev0", | |
| "unk_token_id": 0, | |
| "use_cache": true, | |
| "vocab_size": 250880 | |
| } | |