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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

luksamuk
/
LFM2.5-VL-450M-Hand-Tracking

Image-Text-to-Text
Transformers
Safetensors
English
lfm2_vl
vision
hand-tracking
hand-detection
grounding
lfm2
lfm2.5-vl
lora
unsloth
hagrid
conversational
Model card Files Files and versions
xet
Community

Instructions to use luksamuk/LFM2.5-VL-450M-Hand-Tracking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use luksamuk/LFM2.5-VL-450M-Hand-Tracking with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-text-to-text", model="luksamuk/LFM2.5-VL-450M-Hand-Tracking")
    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, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("luksamuk/LFM2.5-VL-450M-Hand-Tracking")
    model = AutoModelForMultimodalLM.from_pretrained("luksamuk/LFM2.5-VL-450M-Hand-Tracking")
    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 Settings
  • vLLM

    How to use luksamuk/LFM2.5-VL-450M-Hand-Tracking with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "luksamuk/LFM2.5-VL-450M-Hand-Tracking"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "luksamuk/LFM2.5-VL-450M-Hand-Tracking",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/luksamuk/LFM2.5-VL-450M-Hand-Tracking
  • SGLang

    How to use luksamuk/LFM2.5-VL-450M-Hand-Tracking 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 "luksamuk/LFM2.5-VL-450M-Hand-Tracking" \
        --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": "luksamuk/LFM2.5-VL-450M-Hand-Tracking",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
    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 "luksamuk/LFM2.5-VL-450M-Hand-Tracking" \
            --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": "luksamuk/LFM2.5-VL-450M-Hand-Tracking",
    		"messages": [
    			{
    				"role": "user",
    				"content": [
    					{
    						"type": "text",
    						"text": "Describe this image in one sentence."
    					},
    					{
    						"type": "image_url",
    						"image_url": {
    							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
    						}
    					}
    				]
    			}
    		]
    	}'
  • Unsloth Studio

    How to use luksamuk/LFM2.5-VL-450M-Hand-Tracking with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for luksamuk/LFM2.5-VL-450M-Hand-Tracking to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for luksamuk/LFM2.5-VL-450M-Hand-Tracking to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for luksamuk/LFM2.5-VL-450M-Hand-Tracking to start chatting
    Load model with FastModel
    pip install unsloth
    from unsloth import FastModel
    model, tokenizer = FastModel.from_pretrained(
        model_name="luksamuk/LFM2.5-VL-450M-Hand-Tracking",
        max_seq_length=2048,
    )
  • Docker Model Runner

    How to use luksamuk/LFM2.5-VL-450M-Hand-Tracking with Docker Model Runner:

    docker model run hf.co/luksamuk/LFM2.5-VL-450M-Hand-Tracking
LFM2.5-VL-450M-Hand-Tracking
903 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
luksamuk's picture
luksamuk
Upload README.md with huggingface_hub
df269e8 verified 2 days ago
  • .gitattributes
    1.63 kB
    Upload folder using huggingface_hub 2 days ago
  • README.md
    12.8 kB
    Upload README.md with huggingface_hub 2 days ago
  • chat_template.jinja
    3.84 kB
    Upload folder using huggingface_hub 2 days ago
  • config.json
    2.63 kB
    Upload folder using huggingface_hub 2 days ago
  • distill_coco.py
    6.39 kB
    Upload folder using huggingface_hub 2 days ago
  • export_gguf.py
    1.29 kB
    Upload folder using huggingface_hub 2 days ago
  • finetune.py
    2.99 kB
    Upload folder using huggingface_hub 2 days ago
  • generation_config.json
    148 Bytes
    Upload folder using huggingface_hub 2 days ago
  • model.safetensors
    897 MB
    xet
    Upload folder using huggingface_hub 2 days ago
  • plot_training.py
    3.73 kB
    Upload folder using huggingface_hub 2 days ago
  • prepare_dataset.py
    5.37 kB
    Upload folder using huggingface_hub 2 days ago
  • processor_config.json
    824 Bytes
    Upload folder using huggingface_hub 2 days ago
  • tokenizer.json
    4.73 MB
    Upload folder using huggingface_hub 2 days ago
  • tokenizer_config.json
    92.3 kB
    Upload folder using huggingface_hub 2 days ago
  • training_comparison.png
    148 kB
    xet
    Upload folder using huggingface_hub 2 days ago
  • training_plot.png
    166 kB
    xet
    Upload folder using huggingface_hub 2 days ago