Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

rausch
/
de-t5-sci-transfer-init

Text Generation
Transformers
Safetensors
German
t5
text2text-generation
german
wechsel
cross-lingual
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use rausch/de-t5-sci-transfer-init with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use rausch/de-t5-sci-transfer-init with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="rausch/de-t5-sci-transfer-init")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
    
    tokenizer = AutoTokenizer.from_pretrained("rausch/de-t5-sci-transfer-init")
    model = AutoModelForSeq2SeqLM.from_pretrained("rausch/de-t5-sci-transfer-init")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use rausch/de-t5-sci-transfer-init with vLLM:

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

    How to use rausch/de-t5-sci-transfer-init 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 "rausch/de-t5-sci-transfer-init" \
        --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": "rausch/de-t5-sci-transfer-init",
    		"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 "rausch/de-t5-sci-transfer-init" \
            --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": "rausch/de-t5-sci-transfer-init",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use rausch/de-t5-sci-transfer-init with Docker Model Runner:

    docker model run hf.co/rausch/de-t5-sci-transfer-init
de-t5-sci-transfer-init
897 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
rausch's picture
rausch
Create README.md
79cddb6 verified 6 months ago
  • .gitattributes
    136 Bytes
    Initial release with Git LFS 6 months ago
  • README.md
    1.48 kB
    Create README.md 6 months ago
  • config.json
    1.47 kB
    Initial release with Git LFS 6 months ago
  • conversion_info.json
    530 Bytes
    Initial release with Git LFS 6 months ago
  • generation_config.json
    142 Bytes
    Initial release with Git LFS 6 months ago
  • model.safetensors
    892 MB
    xet
    Initial release with Git LFS 6 months ago
  • special_tokens_map.json
    2.54 kB
    Initial release with Git LFS 6 months ago
  • spiece.model
    823 kB
    xet
    Initial release with Git LFS 6 months ago
  • tokenizer.json
    2.54 MB
    Initial release with Git LFS 6 months ago
  • tokenizer.json.backup
    2.45 MB
    Initial release with Git LFS 6 months ago
  • tokenizer_config.json
    20.9 kB
    Initial release with Git LFS 6 months ago
  • transfer_metadata.pt

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    1.96 kB
    Initial release with Git LFS 6 months ago