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

  • Log In
  • Sign Up

Reeya112
/
ex04_new_model

Text Generation
Transformers
TensorBoard
Safetensors
parler_tts
Model card Files Files and versions
xet
Metrics Training metrics Community

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

  • Libraries
  • Transformers

    How to use Reeya112/ex04_new_model with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Reeya112/ex04_new_model")
    # Load model directly
    from transformers import AutoModelForSeq2SeqLM
    model = AutoModelForSeq2SeqLM.from_pretrained("Reeya112/ex04_new_model", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Reeya112/ex04_new_model with vLLM:

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

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

    How to use Reeya112/ex04_new_model with Docker Model Runner:

    docker model run hf.co/Reeya112/ex04_new_model
ex04_new_model
8.83 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Reeya112's picture
Reeya112
Upload full model directory
933097d verified over 1 year ago
  • .ipynb_checkpoints
    Upload full model directory over 1 year ago
  • checkpoint-82-epoch-1
    Upload full model directory over 1 year ago
  • parler-speech
    Upload full model directory over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    5.17 kB
    Upload ParlerTTSForConditionalGeneration over 1 year ago
  • config.json
    7.64 kB
    Upload full model directory over 1 year ago
  • config.py
    742 Bytes
    Upload full model directory over 1 year ago
  • generation_config.json
    267 Bytes
    Upload ParlerTTSForConditionalGeneration over 1 year ago
  • model.safetensors
    2.59 GB
    xet
    Upload full model directory over 1 year ago
  • preprocessor_config.json
    234 Bytes
    Upload full model directory over 1 year ago
  • special_tokens_map.json
    2.54 kB
    Upload full model directory over 1 year ago
  • spiece.model
    792 kB
    xet
    Upload full model directory over 1 year ago
  • tokenizer.json
    2.42 MB
    Upload full model directory over 1 year ago
  • tokenizer_config.json
    20.8 kB
    Upload full model directory over 1 year ago