Question Answering
Transformers
ONNX
Safetensors
nullspan
feature-extraction
system-one
typed-decisions
jevbench
structured-extraction
span-extraction
calibrated-estimation
electra
modernbert
custom_code
Eval Results
Instructions to use gnumanth/nullspan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gnumanth/nullspan 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="gnumanth/nullspan", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gnumanth/nullspan", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from gnumanth/nullspan: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/gnumanth/nullspan/resolve/refs%2Fpr%2F1/config.json
- Command line
-
hf download hf://gnumanth/nullspan@refs/pr/1/config.json
-
curl -L -o config.json https://huggingface.co/gnumanth/nullspan/resolve/refs%2Fpr%2F1/config.json
2.97 kB
| { | |
| "architectures": [ | |
| "NullspanForExtraction" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "modeling_nullspan.NullspanConfig", | |
| "AutoModel": "modeling_nullspan.NullspanForExtraction" | |
| }, | |
| "backbone_name": "ahotrod/electra_large_discriminator_squad2_512", | |
| "dropout": 0.1, | |
| "dtype": "float32", | |
| "encoder_config": { | |
| "_name_or_path": "ahotrod/electra_large_discriminator_squad2_512", | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "ElectraForQuestionAnswering" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bad_words_ids": null, | |
| "begin_suppress_tokens": null, | |
| "bos_token_id": null, | |
| "chunk_size_feed_forward": 0, | |
| "classifier_dropout": null, | |
| "cross_attention_hidden_size": null, | |
| "decoder_start_token_id": null, | |
| "diversity_penalty": 0.0, | |
| "do_sample": false, | |
| "dtype": "float32", | |
| "early_stopping": false, | |
| "embedding_size": 1024, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "eos_token_id": null, | |
| "exponential_decay_length_penalty": null, | |
| "finetuning_task": null, | |
| "forced_bos_token_id": null, | |
| "forced_eos_token_id": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "is_decoder": false, | |
| "is_encoder_decoder": false, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "length_penalty": 1.0, | |
| "max_length": 20, | |
| "max_position_embeddings": 512, | |
| "min_length": 0, | |
| "model_type": "electra", | |
| "no_repeat_ngram_size": 0, | |
| "num_attention_heads": 16, | |
| "num_beam_groups": 1, | |
| "num_beams": 1, | |
| "num_hidden_layers": 24, | |
| "num_return_sequences": 1, | |
| "output_attentions": false, | |
| "output_hidden_states": false, | |
| "output_scores": false, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "prefix": null, | |
| "problem_type": null, | |
| "pruned_heads": {}, | |
| "remove_invalid_values": false, | |
| "repetition_penalty": 1.0, | |
| "return_dict": true, | |
| "return_dict_in_generate": false, | |
| "sep_token_id": null, | |
| "summary_activation": "gelu", | |
| "summary_last_dropout": 0.1, | |
| "summary_type": "first", | |
| "summary_use_proj": true, | |
| "suppress_tokens": null, | |
| "task_specific_params": null, | |
| "temperature": 1.0, | |
| "tf_legacy_loss": false, | |
| "tie_encoder_decoder": false, | |
| "tie_word_embeddings": true, | |
| "tokenizer_class": null, | |
| "top_k": 50, | |
| "top_p": 1.0, | |
| "torchscript": false, | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 2, | |
| "typical_p": 1.0, | |
| "use_bfloat16": false, | |
| "use_cache": true, | |
| "vocab_size": 30522 | |
| }, | |
| "hidden_size": 1024, | |
| "max_length": 512, | |
| "model_type": "nullspan", | |
| "null_temperature": 0.7, | |
| "num_bio_labels": 3, | |
| "num_ops": 10, | |
| "qa_null_bias": -1.0, | |
| "qa_null_scale": 0.4, | |
| "span_temperature": 1.2, | |
| "transformers_version": "4.57.6" | |
| } | |