Run this model with HF Jobs

Run chris0809/tinyLLM-0.51B-VLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/chris0809/tinyLLM-0.51B-VLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/chris0809/tinyLLM-0.51B-VLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/chris0809/tinyLLM-0.51B-VLM. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/chris0809/tinyLLM-0.51B-VLM. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

tinyLLM VLM 0.51B

ไธญๆ–‡้กน็›ฎๆ–‡ๆกฃ ยท English project overview ยท Live demo

tinyLLM local VLM demo

The local demo switches to the VLM checkpoint, encodes five image views, and streams the checked output.

tinyLLM is a custom 0.51B decoder-only model trained from scratch for Chinese and English. Loading requires trust_remote_code=True because the architecture is implemented in this repository.

This release is the step 18000 VLM checkpoint. It combines the language model with a 4-layer Q-Former, projector and rank-128 visual LoRA. The visual continual-SFT stage used 201,748 image examples plus 20% bilingual text replay.

Load

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "chris0809/tinyLLM-0.51B-VLM"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype="auto",
)
model.load_lora_pretrained(model_id, subfolder="adapter")

Thinking mode

The bundled tokenizer also accepts enable_thinking=True in apply_chat_template, mainly for text-only mathematics or multi-step reasoning. Keep it off for ordinary image description; the GitHub demo uses a separate conservative visual system prompt to reduce hallucination.

Vision encoder

The frozen vision tower is OpenGVLab/InternViT-300M-448px-V2_5 and is loaded separately. This repository contains the language model, Q-Former, projector and the visual LoRA adapter. The model forward accepts precomputed vision_feats, vision_mask, global_pos and global_off tensors. The five-view image preprocessing and end-to-end chat path are in the GitHub project. This repository does not claim generic AutoProcessor support.

Source

Training code and full project documentation: https://github.com/Huanz86251/tinyLLM

Downloads last month
14
Safetensors
Model size
0.6B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for chris0809/tinyLLM-0.51B-VLM

Finetuned
(1)
this model

Space using chris0809/tinyLLM-0.51B-VLM 1