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

smartcat
/
T5-GenQ-T-v1

Text Generation
Transformers
Safetensors
English
t5
text2text-generation
e-commerce
query-generation
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use smartcat/T5-GenQ-T-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use smartcat/T5-GenQ-T-v1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="smartcat/T5-GenQ-T-v1")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("smartcat/T5-GenQ-T-v1")
    model = AutoModelForSeq2SeqLM.from_pretrained("smartcat/T5-GenQ-T-v1")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use smartcat/T5-GenQ-T-v1 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "smartcat/T5-GenQ-T-v1"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "smartcat/T5-GenQ-T-v1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/smartcat/T5-GenQ-T-v1
  • SGLang

    How to use smartcat/T5-GenQ-T-v1 with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "smartcat/T5-GenQ-T-v1" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "smartcat/T5-GenQ-T-v1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "smartcat/T5-GenQ-T-v1" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "smartcat/T5-GenQ-T-v1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use smartcat/T5-GenQ-T-v1 with Docker Model Runner:

    docker model run hf.co/smartcat/T5-GenQ-T-v1
T5-GenQ-T-v1
Ctrl+K
Ctrl+K
  • 3 contributors
History: 13 commits
aya-r15's picture
aya-r15
Update README.md
ba4cb1f verified about 1 year ago
  • .gitattributes
    1.89 kB
    Upload 6 files about 1 year ago
  • README.md
    14.7 kB
    Update README.md about 1 year ago
  • average_scores_by_model.png
    296 kB
    xet
    Upload 6 files about 1 year ago
  • config.json
    1.58 kB
    Upload T5ForConditionalGeneration about 1 year ago
  • density_comparison.png
    795 kB
    xet
    Upload 6 files about 1 year ago
  • generation_config.json
    112 Bytes
    Upload T5ForConditionalGeneration about 1 year ago
  • group_sizes.png
    397 kB
    xet
    Upload 6 files about 1 year ago
  • histogram_comparison.png
    866 kB
    xet
    Upload 6 files about 1 year ago
  • model.safetensors
    892 MB
    xet
    Upload T5ForConditionalGeneration about 1 year ago
  • semantic_similarity_distribution.png
    124 kB
    xet
    Upload 6 files about 1 year ago
  • similarity_vs_rouge.png
    2.63 MB
    xet
    Upload 6 files about 1 year ago
  • special_tokens_map.json
    2.54 kB
    Upload tokenizer about 1 year ago
  • spiece.model
    792 kB
    xet
    Upload tokenizer about 1 year ago
  • tokenizer.json
    2.42 MB
    Upload tokenizer about 1 year ago
  • tokenizer_config.json
    21 kB
    Upload tokenizer about 1 year ago