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

ChantalPellegrini
/
RaDialog-interactive-radiology-report-generation

Image-Text-to-Text
Transformers
llava
text-generation
medical
radiology report generation
medical chatbot
Model card Files Files and versions
xet
Community
5

Instructions to use ChantalPellegrini/RaDialog-interactive-radiology-report-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ChantalPellegrini/RaDialog-interactive-radiology-report-generation with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="ChantalPellegrini/RaDialog-interactive-radiology-report-generation")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForCausalLM
    
    processor = AutoProcessor.from_pretrained("ChantalPellegrini/RaDialog-interactive-radiology-report-generation")
    model = AutoModelForCausalLM.from_pretrained("ChantalPellegrini/RaDialog-interactive-radiology-report-generation")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use ChantalPellegrini/RaDialog-interactive-radiology-report-generation with vLLM:

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

    How to use ChantalPellegrini/RaDialog-interactive-radiology-report-generation 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 "ChantalPellegrini/RaDialog-interactive-radiology-report-generation" \
        --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": "ChantalPellegrini/RaDialog-interactive-radiology-report-generation",
    		"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 "ChantalPellegrini/RaDialog-interactive-radiology-report-generation" \
            --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": "ChantalPellegrini/RaDialog-interactive-radiology-report-generation",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use ChantalPellegrini/RaDialog-interactive-radiology-report-generation with Docker Model Runner:

    docker model run hf.co/ChantalPellegrini/RaDialog-interactive-radiology-report-generation
RaDialog-interactive-radiology-report-generation
1.12 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 44 commits
ChantalPellegrini's picture
ChantalPellegrini
nielsr's picture
nielsr HF Staff
Add link to paper (#5)
a0c5cb0 verified 10 months ago
  • LLAVA_Biovil
    last update about 2 years ago
  • __pycache__
    last update about 2 years ago
  • findings_classifier
    last update about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    7.17 kB
    Add link to paper (#5) 10 months ago
  • adapter_config.json
    526 Bytes
    move model about 2 years ago
  • adapter_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    640 MB
    xet
    move model about 2 years ago
  • config.json
    1.27 kB
    move model about 2 years ago
  • conversation.py
    17 kB
    Initial model commit about 2 years ago
  • example_code.py
    4.7 kB
    last update about 2 years ago
  • non_lora_trainables.bin

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict",
    • "torch.BFloat16Storage",
    • "torch.LongStorage"

    What is a pickle import?

    160 MB
    xet
    move model about 2 years ago
  • requirements.txt
    198 Bytes
    Update requirements.txt over 1 year ago
  • utils.py
    3.66 kB
    module device about 2 years ago