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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

pratikshourabh
/
indAI

Text Generation
Transformers
Safetensors
PyTorch
English
gpt2
causal-language-model
conversational-ai
language-model
custom-trained
generative-ai
text-generation-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use pratikshourabh/indAI with Transformers:

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

    How to use pratikshourabh/indAI with vLLM:

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

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

    How to use pratikshourabh/indAI with Docker Model Runner:

    docker model run hf.co/pratikshourabh/indAI
indAI
4.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
pratikshourabh's picture
pratikshourabh
Incremental training | epoch=4 | step=8438 | train=0.3959 | val=0.3460
34c1d1b verified 9 days ago
  • .gitattributes
    1.52 kB
    initial commit 10 days ago
  • README.md
    33.1 kB
    Update README.md 10 days ago
  • config.json
    1.02 kB
    Incremental training | epoch=3 | step=6 | train=4.5232 | val=3.0744 9 days ago
  • generation_config.json
    118 Bytes
    Epoch 0 | train 5.0999 | val 4.9161 10 days ago
  • model.safetensors
    1.42 GB
    xet
    Incremental training | epoch=4 | step=8438 | train=0.3959 | val=0.3460 9 days ago
  • tokenizer.json
    3.56 MB
    Epoch 0 | train 5.0999 | val 4.9161 10 days ago
  • tokenizer_config.json
    296 Bytes
    Incremental training | epoch=3 | step=6 | train=4.5232 | val=3.0744 9 days ago
  • training_metadata.json
    289 Bytes
    Incremental training | epoch=4 | step=8438 | train=0.3959 | val=0.3460 9 days ago
  • training_state.pt
    2.84 GB
    xet
    Incremental training | epoch=4 | step=8438 | train=0.3959 | val=0.3460 9 days ago