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

  • Log In
  • Sign Up

textattack
/
xlnet-base-cased-RTE

Text Generation
Transformers
PyTorch
xlnet
Model card Files Files and versions
xet
Community
1

Instructions to use textattack/xlnet-base-cased-RTE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use textattack/xlnet-base-cased-RTE with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="textattack/xlnet-base-cased-RTE")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("textattack/xlnet-base-cased-RTE")
    model = AutoModelForCausalLM.from_pretrained("textattack/xlnet-base-cased-RTE")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use textattack/xlnet-base-cased-RTE with vLLM:

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

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

    How to use textattack/xlnet-base-cased-RTE with Docker Model Runner:

    docker model run hf.co/textattack/xlnet-base-cased-RTE
xlnet-base-cased-RTE
939 MB
Ctrl+K
Ctrl+K
History: 21 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
6070225 verified about 1 year ago
  • .gitattributes
    399 Bytes
    Adding `safetensors` variant of this model about 1 year ago
  • README.md
    622 Bytes
    Update README.md almost 6 years ago
  • config.json
    794 Bytes
    Update config.json almost 6 years ago
  • eval_results_rte.txt
    72 Bytes
    Update eval_results_rte.txt almost 6 years ago
  • log.txt
    1.82 kB
    Update log.txt almost 6 years ago
  • model.safetensors
    469 MB
    xet
    Adding `safetensors` variant of this model about 1 year ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    469 MB
    xet
    Update pytorch_model.bin almost 6 years ago
  • special_tokens_map.json
    202 Bytes
    Update special_tokens_map.json almost 6 years ago
  • spiece.model
    798 kB
    Update spiece.model almost 6 years ago
  • tokenizer_config.json
    2 Bytes
    Update tokenizer_config.json almost 6 years ago
  • train_args.json
    770 Bytes
    Update train_args.json almost 6 years ago
  • training_args.bin

    Detected Pickle imports (2)

    • "transformers.training_args.TrainingArguments",
    • "torch.device"

    How to fix it?

    1.05 kB
    xet
    Update training_args.bin almost 6 years ago