deepset/xlm-roberta-base-squad2

`deepset/xlm-roberta-base-squad2` powered by Hugging Face Inference Toolkit - [Original Model Card](https://huggingface.co/deepset/xlm-roberta-base-squad2) - [`question-answering` Task on Hugging Fac…

azureFoundry/HuggingFace/deepset-xlm-roberta-base-squad2@3

deepset/xlm-roberta-base-squad2 powered by Hugging Face Inference Toolkit

Send Request

You can use cURL or any REST Client to send a request to the AzureML endpoint with your AzureML token.

curl <AZUREML_ENDPOINT_URL> \
    -X POST \
    -H "Authorization: Bearer <AZUREML_TOKEN>" \
    -H "Content-Type: application/json" \
    -d '{"question": "What is my name?", "context": "My name is Clara and I live in Berkeley."}'

Supported Parameters

  • inputs (object): One (context, question) pair to answer
    • context (string): The context to be used for answering the question
    • question (string): The question to be answered
  • parameters (object):
    • top_k (integer): The number of answers to return (will be chosen by order of likelihood). Note that we return less than topk answers if there are not enough options available within the context.
    • doc_stride (integer): If the context is too long to fit with the question for the model, it will be split in several chunks with some overlap. This argument controls the size of that overlap.
    • max_answer_len (integer): The maximum length of predicted answers (e.g., only answers with a shorter length are considered).
    • max_seq_len (integer): The maximum length of the total sentence (context + question) in tokens of each chunk passed to the model. The context will be split in several chunks (using docStride as overlap) if needed.
    • max_question_len (integer): The maximum length of the question after tokenization. It will be truncated if needed.
    • handle_impossible_answer (boolean): Whether to accept impossible as an answer.
    • align_to_words (boolean): Attempts to align the answer to real words. Improves quality on space separated languages. Might hurt on non-space-separated languages (like Japanese or Chinese)

Check the full API Specification at the Hugging Face Inference documentation.

Specifications & capabilities

Input
text
Output
text
Published model ID
xlm-roberta-base-squad2

Provider specifications & access

1–1 / 1

deepset/xlm-roberta-base-squad2 ↗

source model id
HuggingFace/deepset-xlm-roberta-base-squad2@3
hosting
foundry-managed-compute
platforms
  • Microsoft Foundry
license
cc-by-4.0
architecture
input_modalities
  • text
output_modalities
  • text
capabilities

    Original sources

    1–4 / 4

    Hugging Face · deepset/xlm-roberta-base-squad2 ↗

    Microsoft Foundry · Model page ↗

    Microsoft Foundry · Model documentation ↗

    Microsoft Foundry · Catalog ↗

    Source links

    1–1 / 1

    Explore more models

    Models

    Loading
    EVIDENCE / COMPARISON

    Benchmarks

    Explore every benchmark

    Loading

    These charts contain model-linked results. The charts above also include unlinked source profiles. Compare scores within each evaluation. Model quality, usage, transparency and system performance measure different things.

    Install TensorTrace