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

Jasleen05
/
my-local-chatbot

Text Generation
Transformers
Safetensors
English
chatbot
instruction-tuning
distilgpt2
alpaca
fine-tuned
offline
flask
Model card Files Files and versions
xet
Community

Instructions to use Jasleen05/my-local-chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Jasleen05/my-local-chatbot with Transformers:

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

    How to use Jasleen05/my-local-chatbot with vLLM:

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

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

    How to use Jasleen05/my-local-chatbot with Docker Model Runner:

    docker model run hf.co/Jasleen05/my-local-chatbot
my-local-chatbot
Ctrl+K
Ctrl+K
  • 1 contributor
History: 27 commits
Jasleen05's picture
Jasleen05
Update README.md
ba9792d verified 11 months ago
  • model_output
    Add model_output folder 11 months ago
  • static
    Update static folder 11 months ago
  • templates
    Update templates folder 11 months ago
  • trained_model_20250710_061949
    Upload folder using huggingface_hub 11 months ago
  • README.md
    2.9 kB
    Update README.md 11 months ago
  • alpaca_data.json
    22.2 MB
    xet
    Upload 12 files 11 months ago
  • app.py
    9.52 kB
    Update app.py 11 months ago
  • chat_history.db
    20.5 kB
    Update chat_history.db 11 months ago
  • init_db.py
    998 Bytes
    Update init_db.py 11 months ago
  • preprocess.py
    623 Bytes
    Upload 12 files 11 months ago
  • processed_dataset.csv
    18.7 MB
    xet
    Upload 12 files 11 months ago
  • requirements.txt
    543 Bytes
    Upload 12 files 11 months ago
  • train.py
    2.76 kB
    Upload 12 files 11 months ago