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

  • Log In
  • Sign Up

gamemaker1
/
t5edit

Text Generation
Transformers
Safetensors
English
t5
text2text-generation
fact-updating
wikipedia
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use gamemaker1/t5edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use gamemaker1/t5edit with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="gamemaker1/t5edit")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("gamemaker1/t5edit")
    model = AutoModelForSeq2SeqLM.from_pretrained("gamemaker1/t5edit", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use gamemaker1/t5edit with vLLM:

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

    How to use gamemaker1/t5edit 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 "gamemaker1/t5edit" \
        --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": "gamemaker1/t5edit",
    		"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 "gamemaker1/t5edit" \
            --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": "gamemaker1/t5edit",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use gamemaker1/t5edit with Docker Model Runner:

    docker model run hf.co/gamemaker1/t5edit
t5edit
3.14 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
gamemaker1's picture
gamemaker1
use a listed pipeline tag
c0484ce verified 2 days ago
  • .gitattributes
    1.52 kB
    initial commit 2 days ago
  • README.md
    3.24 kB
    use a listed pipeline tag 2 days ago
  • config.json
    767 Bytes
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • generation_config.json
    142 Bytes
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • model.safetensors
    3.13 GB
    xet
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • run_config.json
    547 Bytes
    add the card and the run config and metrics 2 days ago
  • run_metrics.json
    1.39 kB
    add the card and the run config and metrics 2 days ago
  • special_tokens_map.json
    2.54 kB
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • spiece.model
    792 kB
    xet
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • tokenizer.json
    2.42 MB
    add the fine-tuned checkpoint and tokenizer 2 days ago
  • tokenizer_config.json
    20.8 kB
    add the fine-tuned checkpoint and tokenizer 2 days ago