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

shivanshu292001
/
GeneratorModel

Text Generation
Transformers
PyTorch
google-tensorflow TensorFlow
JAX
LiteRT
Rust
Safetensors
gpt2
text-generation-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use shivanshu292001/GeneratorModel with Transformers:

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

    How to use shivanshu292001/GeneratorModel with vLLM:

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

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

    How to use shivanshu292001/GeneratorModel with Docker Model Runner:

    docker model run hf.co/shivanshu292001/GeneratorModel

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • .gitattributes
    446 Bytes
    Update .gitattributes about 3 years ago
  • 64-8bits.tflite
    125 MB
    xet
    Upload 64-8bits.tflite about 3 years ago
  • 64-fp16.tflite
    248 MB
    xet
    Upload 64-fp16.tflite about 3 years ago
  • 64.tflite
    496 MB
    xet
    Upload 64.tflite about 3 years ago
  • README.md
    21 Bytes
    initial commit about 3 years ago
  • config.json
    665 Bytes
    Update config.json about 3 years ago
  • flax_model.msgpack
    498 MB
    xet
    Upload flax_model.msgpack about 3 years ago
  • generation_config.json
    124 Bytes
    Upload generation_config.json about 3 years ago
  • model.safetensors
    548 MB
    xet
    Upload model.safetensors about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    548 MB
    xet
    Upload pytorch_model.bin about 3 years ago
  • rust_model.ot
    703 MB
    xet
    Upload rust_model.ot about 3 years ago
  • tf_model.h5
    498 MB
    xet
    Upload tf_model.h5 about 3 years ago
  • tokenizer.json
    1.36 MB
    Upload tokenizer.json about 3 years ago
  • vocab.json
    1.04 MB
    Upload vocab.json about 3 years ago