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

RayyanAhmed9477
/
Health-Chatbot

Text Generation
Transformers
Safetensors
English
llama
conversational
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use RayyanAhmed9477/Health-Chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use RayyanAhmed9477/Health-Chatbot with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="RayyanAhmed9477/Health-Chatbot")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("RayyanAhmed9477/Health-Chatbot", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use RayyanAhmed9477/Health-Chatbot with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "RayyanAhmed9477/Health-Chatbot"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "RayyanAhmed9477/Health-Chatbot",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/RayyanAhmed9477/Health-Chatbot
  • SGLang

    How to use RayyanAhmed9477/Health-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 "RayyanAhmed9477/Health-Chatbot" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "RayyanAhmed9477/Health-Chatbot",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "RayyanAhmed9477/Health-Chatbot" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "RayyanAhmed9477/Health-Chatbot",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use RayyanAhmed9477/Health-Chatbot with Docker Model Runner:

    docker model run hf.co/RayyanAhmed9477/Health-Chatbot
Health-Chatbot
597 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
RayyanAhmed9477's picture
RayyanAhmed9477
Training Script and Readability
0566aed verified over 1 year ago
  • results
    Upload results folder over 1 year ago
  • .gitattributes
    1.57 kB
    Upload tokenizer for healthcare chatbot over 1 year ago
  • README.md
    5.53 kB
    Training Script and Readability over 1 year ago
  • adapter_config.json
    735 Bytes
    Upload fine-tuned healthcare chatbot model over 1 year ago
  • config.json
    760 Bytes
    Update config.json over 1 year ago
  • model.safetensors
    57.9 MB
    xet
    Rename adapter_model.safetensors to model.safetensors over 1 year ago
  • special_tokens_map.json
    325 Bytes
    Upload tokenizer for healthcare chatbot over 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    Upload tokenizer for healthcare chatbot over 1 year ago
  • tokenizer_config.json
    55.4 kB
    Upload tokenizer for healthcare chatbot over 1 year ago