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

choonok
/
VetJarvis-4B-Instruct

Text Generation
Transformers
Safetensors
Korean
English
qwen3_5
image-text-to-text
veterinary
companion-animal
canine
feline
medical
domain-specific
qwen3.5
not-a-medical-device
conversational
Model card Files Files and versions
xet
Community

Instructions to use choonok/VetJarvis-4B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use choonok/VetJarvis-4B-Instruct with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="choonok/VetJarvis-4B-Instruct")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    pipe(text=messages)
    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("choonok/VetJarvis-4B-Instruct")
    model = AutoModelForImageTextToText.from_pretrained("choonok/VetJarvis-4B-Instruct")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
                {"type": "text", "text": "What animal is on the candy?"}
            ]
        },
    ]
    inputs = processor.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use choonok/VetJarvis-4B-Instruct with vLLM:

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

    How to use choonok/VetJarvis-4B-Instruct 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 "choonok/VetJarvis-4B-Instruct" \
        --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": "choonok/VetJarvis-4B-Instruct",
    		"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 "choonok/VetJarvis-4B-Instruct" \
            --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": "choonok/VetJarvis-4B-Instruct",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use choonok/VetJarvis-4B-Instruct with Docker Model Runner:

    docker model run hf.co/choonok/VetJarvis-4B-Instruct
VetJarvis-4B-Instruct
9.33 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 28 commits
choonok's picture
choonok
Update README.md
c4895e0 verified 21 days ago
  • media
    Replace image2.png with image_re_2.png and sync READMEs 25 days ago
  • .gitattributes
    1.57 kB
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • LICENSE
    11.4 kB
    Add LICENSE 25 days ago
  • README.md
    14.8 kB
    Update README.md 21 days ago
  • README_ko.md
    14.1 kB
    Replace image2.png with image_re_2.png and sync READMEs 25 days ago
  • chat_template.jinja
    7.76 kB
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • config.json
    3.87 kB
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • model-00001-of-00002.safetensors
    4.99 GB
    xet
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • model-00002-of-00002.safetensors
    4.33 GB
    xet
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • model.safetensors.index.json
    67.3 kB
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • preprocessor_config.json
    390 Bytes
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • tokenizer.json
    12.8 MB
    xet
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago
  • tokenizer_config.json
    16.7 kB
    Upload Vet-JARVIS 4B SFT-Restart (iter_0002288, 2 epoch) 26 days ago