Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

macavaney
/
doc2query-t5-base-msmarco

Translation
Transformers
PyTorch
Safetensors
English
t5
text2text-generation
retrieval
document-expansion
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use macavaney/doc2query-t5-base-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use macavaney/doc2query-t5-base-msmarco with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "translation" 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("translation", model="macavaney/doc2query-t5-base-msmarco")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("macavaney/doc2query-t5-base-msmarco")
    model = AutoModelForSeq2SeqLM.from_pretrained("macavaney/doc2query-t5-base-msmarco")
  • Notebooks
  • Google Colab
  • Kaggle
doc2query-t5-base-msmarco
1.78 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 13 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
0dfe2f6 about 3 years ago
  • .gitattributes
    1.43 kB
    initial commit over 3 years ago
  • README.md
    3.26 kB
    Update README.md over 3 years ago
  • config.json
    1.49 kB
    initial commit over 3 years ago
  • model.safetensors
    892 MB
    xet
    Adding `safetensors` variant of this model about 3 years ago
  • pytorch_model.bin
    892 MB
    xet
    initial commit over 3 years ago
  • special_tokens_map.json
    2.2 kB
    initial commit over 3 years ago
  • spiece.model
    792 kB
    xet
    initial commit over 3 years ago
  • tokenizer_config.json
    2.37 kB
    initial commit over 3 years ago