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

aman0419
/
Vitallm-50M

Text Generation
Transformers
PyTorch
English
vital_slm
medical
slm
healthcare
supervised-fine-tuning
clinical-reasoning
Model card Files Files and versions
xet
Community

Instructions to use aman0419/Vitallm-50M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use aman0419/Vitallm-50M with Transformers:

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

    How to use aman0419/Vitallm-50M with vLLM:

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

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

    How to use aman0419/Vitallm-50M with Docker Model Runner:

    docker model run hf.co/aman0419/Vitallm-50M
Vitallm-50M
Ctrl+K
Ctrl+K
  • 1 contributor
History: 19 commits
aman0419's picture
aman0419
Update README.md
988111f verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit 3 months ago
  • README.md
    10.1 kB
    Update README.md about 1 month ago
  • VitalLM_SFT_Best.pt

    Detected Pickle imports (3)

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

    What is a pickle import?

    202 MB
    xet
    Upload VitalLM_SFT_Best.pt about 1 month ago
  • config.json
    158 Bytes
    Create config.json 3 months ago
  • merges_50m.txt
    144 kB
    Upload 2 files 3 months ago
  • model.py
    6.87 kB
    Create model.py 3 months ago
  • vital_lm_50m_weights.pt

    Detected Pickle imports (3)

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

    What is a pickle import?

    202 MB
    xet
    Upload vital_lm_50m_weights.pt 3 months ago
  • vocab_50m.json
    249 kB
    Upload 2 files 3 months ago