Instructions to use TK17250/game-comment-vlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TK17250/game-comment-vlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TK17250/game-comment-vlm") 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("TK17250/game-comment-vlm") model = AutoModelForMultimodalLM.from_pretrained("TK17250/game-comment-vlm", device_map="auto") 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 TK17250/game-comment-vlm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TK17250/game-comment-vlm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TK17250/game-comment-vlm", "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/TK17250/game-comment-vlm
- SGLang
How to use TK17250/game-comment-vlm 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 "TK17250/game-comment-vlm" \ --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": "TK17250/game-comment-vlm", "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 "TK17250/game-comment-vlm" \ --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": "TK17250/game-comment-vlm", "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 TK17250/game-comment-vlm 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 TK17250/game-comment-vlm 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 TK17250/game-comment-vlm to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TK17250/game-comment-vlm to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="TK17250/game-comment-vlm", max_seq_length=2048, ) - Docker Model Runner
How to use TK17250/game-comment-vlm with Docker Model Runner:
docker model run hf.co/TK17250/game-comment-vlm
Game Comment VLM
A vision-language model fine-tuned to act as a live game commentator — it looks at a gameplay screenshot and generates a short, natural, spoken-style comment reacting to the moment, similar to how a live streamer or esports caster would react in real time.
- Developed by: TK17250
- License: apache-2.0
- Finetuned from model: unsloth/Llama-3.2-11B-Vision-Instruct
- Model type: Vision-Language Model (mllama architecture, 11B parameters)
- Language: English
This model was trained 2x faster with Unsloth and Hugging Face's TRL library.
Supported Games
The model is trained specifically on gameplay screenshots from three titles:
| Game | Genre |
|---|---|
| Fortnite | Battle Royale |
| Rocket League | Vehicular Soccer |
| VALORANT | Tactical FPS |
Commentary style and vocabulary (e.g. weapon names, map callouts, in-game terminology) are tailored to these three games. Performance on other games or genres outside this scope is not guaranteed, since the training data does not cover them.
Training Data
- Fine-tuned on a synthetic dataset of ~1,600+ gameplay screenshots paired with commentator-style captions.
- Captions were generated using
Minimax-M3as a teacher model, then quality-filtered using a 0–5 relevance/quality score before training. - Each training example consists of: a gameplay screenshot, a system persona prompt ("passionate live game commentator"), and a target caption written in a natural, spoken commentary style.
How to Use
from transformers import AutoProcessor, AutoModelForVision2Seq
from PIL import Image
import torch
processor = AutoProcessor.from_pretrained("TK17250/game-comment-vlm")
model = AutoModelForVision2Seq.from_pretrained(
"TK17250/game-comment-vlm",
torch_dtype=torch.bfloat16,
device_map="auto",
)
image = Image.open("your_gameplay_screenshot.jpg").convert("RGB")
system_prompt = (
"You are a passionate live game commentator. You watch a screenshot from a "
"video game and give a short, natural spoken-style comment on the gameplay "
"moment, reacting to how good or bad the play looks."
)
user_prompt = "Comment on this gameplay moment."
messages = [
{"role": "user", "content": [
{"type": "image"},
{"type": "text", "text": f"{system_prompt}\n\n{user_prompt}"}
]}
]
input_text = processor.apply_chat_template(messages, add_generation_prompt=True)
inputs = processor(image, input_text, add_special_tokens=False, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=128, temperature=0.7, min_p=0.1)
print(processor.decode(output[0], skip_special_tokens=True))
Note: This model's chat template does not support a separate
systemrole alongside image inputs. Combine the persona/system instruction directly into theusermessage text, as shown above.
Using Unsloth (faster inference)
from unsloth import FastVisionModel
from transformers import TextStreamer
model, tokenizer = FastVisionModel.from_pretrained("TK17250/game-comment-vlm", load_in_4bit=False)
FastVisionModel.for_inference(model)
# ... build messages/inputs as above using `tokenizer` instead of `processor`
_ = model.generate(**inputs, streamer=TextStreamer(tokenizer, skip_prompt=True), max_new_tokens=128)
Intended Use
- Generating live-style commentary/captions for gameplay clips or screenshots (Fortnite, Rocket League, VALORANT).
- Powering auto-commentary features for streaming tools, highlight reels, or gameplay analysis apps.
Limitations
- Trained only on the three games listed above; output quality and terminology accuracy drop significantly for other games.
- As a fine-tune of an 11B vision-language model on a relatively small synthetic dataset (~1,600 examples), the model may occasionally produce generic or repetitive commentary, or misread fine-grained HUD/UI details (e.g. exact kill counts, health values).
- Captions are stylistic/entertainment-oriented and should not be relied on for precise, factual game-state reporting.
- Downloads last month
- 122
Model tree for TK17250/game-comment-vlm
Base model
meta-llama/Llama-3.2-11B-Vision-Instruct