liuhaotian/LLaVA-Instruct-150K
Preview • Updated • 7.13k • 601
How to use kevin510/friday with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="kevin510/friday", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("kevin510/friday", trust_remote_code=True, dtype="auto")How to use kevin510/friday with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "kevin510/friday"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "kevin510/friday",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/kevin510/friday
How to use kevin510/friday with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "kevin510/friday" \
--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": "kevin510/friday",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "kevin510/friday" \
--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": "kevin510/friday",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use kevin510/friday with Docker Model Runner:
docker model run hf.co/kevin510/friday
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("kevin510/friday", trust_remote_code=True, dtype="auto")Friday-VLM is a finetune of the text-only Phi-4-mini-reasoning model that enables multimodal (image + text) instruction following.
The architecture and config live in this repo, so callers must load the model with
trust_remote_code=True.
| Repo ID | Precision | File format | Typical VRAM* | Size on disk |
|---|---|---|---|---|
kevin510/friday |
bf16 (full) | safetensors |
100 % | 100 % |
kevin510/friday-fp4 |
fp4 (bitsandbytes int4) | safetensors |
≈ 30 % | ≈ 25 % |
conda create --name friday python=3.12 -y
conda activate friday
pip install transformers torch torchvision deepspeed accelerate pillow einops timm
import torch
from PIL import Image
from transformers import AutoTokenizer, AutoModelForCausalLM
from transformers.utils import logging
tok = AutoTokenizer.from_pretrained("kevin510/friday", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
"kevin510/friday",
trust_remote_code=True,
device_map="auto"
)
model.eval()
prompt = "Describe this image."
user_prompt = f"<|user|><image>\n{prompt}\n<|assistant|>"
inputs = tok(user_prompt, return_tensors="pt").to(model.device)
image = Image.open("my_image.jpg").convert("RGB")
with torch.no_grad():
out = model.generate(
**inputs,
max_new_tokens=256,
do_sample=False,
images=[image]
)
print(tok.decode(out[0], skip_special_tokens=False))
FastViT-HD ─▶ 3072-d patch embeddings ─▶ S2 6144-d patch embeddings ─▶ 2-layer MLP vision-adapter (6144 → 3072)
(vision tokens, 3072 d) ─┐
├─► Φ-4-mini-reasoning (2.7 B params, hidden = 3072)
<text tokens, 3072 d> ───┘ │
│ (standard self-attention only;
│ language tower is frozen at finetune)
Friday-VLM may hallucinate objects, invent facts, or reproduce societal biases. All variants share the same behaviour profile; quantisation does not filter or sanitise model outputs. Users must apply their own content-safety layer before deployment.
@misc{friday2025,
title = {Friday VLM: Efficient Instruction-Tuned Vision–Language Modelling},
author = {Kevin Rohling},
year = {2025},
url = {https://huggingface.co/kevin510/friday}
}
Base model
kevin510/fast-vit-hd
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kevin510/friday", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)