Downloads · 30 days
29
8% of all-time downloads
Yana/compass-vlm-phase1
compass-vlm-phase1 is a image-text-to-text model from Yana. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Development of a Japanese Financial VLM through Integration of Reasoning Enhancement and Document Comprehension (推論強化と文書読解の統合による日本語金融VLMの開発)
Downloads · 30 days
29
8% of all-time downloads
All-time downloads
371
Public
Parameters
8.6B
19.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors19.5 GB · 100%
From the Hugging Face model README
Development of a Japanese Financial VLM through Integration of Reasoning Enhancement and Document Comprehension (推論強化と文書読解の統合による日本語金融VLMの開発)
This model is the Phase 1 checkpoint of the COMPASS project — a Japanese Vision-Language Model (VLM) built on a LLaVA-OneVision-style architecture. Phase 1 produces a general-purpose Japanese VLM through image-caption pretraining and visual instruction tuning. It serves as the vision-grounded foundation for the subsequent reasoning enhancement (Phase 2) and financial domain fine-tuning (Phase 3) stages.
Developed by Atsushi Yanagisawa and Genshin Kakimoto as part of the FT-LLM 2026 free-form task.
| Item | Value |
|---|---|
| Model type | Vision-Language Model (LLaVA-OneVision-style) |
| Parameters | ~9B |
| Precision | BF16 |
| Primary language | Japanese (with English support inherited from the base LLM) |
| License | Apache-2.0 (see License) |
Input Image ──► SigLIP-v2 Vision Encoder ──► MLP Projector ──┐
├──► LLM-JP-4-8B-Instruct ──► Output Text
Input Text ──────────────────────────────────────────────────┘
| Component | Model | Role in Phase 1 |
|---|---|---|
| Vision Encoder | google/siglip2-so400m-patch14-384 | Frozen in Stage 1-1, trainable (lr = 2e-6) in Stage 1-2 |
| MLP Projector | Linear(1152→4096) → GELU → Linear(4096→4096), ~8M params | Trainable in both stages |
| LLM | llm-jp/llm-jp-4-8b-instruct (8B) | Frozen by default; trainable via LoRA in Stage 1-2 |
Phase 1 follows the two-stage recipe popularized by LLaVA-1.5 / LLaVA-OneVision, adapted to Japanese data.
| Parameter | Value |
|---|---|
| Per-device batch size | 2 |
| Gradient accumulation steps | 64 |
| Warmup ratio | 0.03 |
| Weight decay | 0.0 |
| Max sequence length | 2048 |
| Mixed precision | BF16 |
| Seed | 42 |
Training uses NCCL and supports torchrun, SLURM, and OpenMPI. Gradient checkpointing is enabled by default. An H100 80GB GPU is recommended.
The model uses the LLM-JP v4 instruct template:
以下は、タスクを説明する指示です。要求を適切に満たす応答を書きなさい。
### 指示:
<image>
この画像を見て、質問に答えてください。
{user_question}
### 応答:
{assistant_answer}<|eos|>
Special tokens:
| Token | Purpose |
|---|---|
<image> | Image placeholder replaced by vision embeddings |
| `< | eos |
Typical prompts used during training:
この画像を端的に説明してください。 ("Please briefly describe this image.")この画像を見て、質問に答えてください。 ("Look at this image and answer the question.")This checkpoint is specifically intended to be continued into:
Phase 1 is evaluated qualitatively via automatically generated raw outputs on:
Quantitative benchmarks (GSM8K, JP Harness, EDINET Bench) are reported for the full pipeline rather than Phase 1 alone. See the project repository for numbers.
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoProcessor
import torch
model_id = "Yana/compass-vlm-phase1"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
For the full inference pipeline (image preprocessing with SigLIP-v2, <image> token expansion, and AnyRes handling), please refer to the phase1/ directory in the GitHub repository.
If you use this model, please cite the COMPASS project:
@misc{compass2026,
title = {COMPASS: Development of a Japanese Financial VLM through
Integration of Reasoning Enhancement and Document Comprehension},
author = {Yanagisawa, Atsushi and Kakimoto, Genshin},
year = {2026},
howpublished = {\url{https://github.com/AtsushiYanaigsawa768/Compass}},
note = {FT-LLM 2026 free-form task}
}
Please also cite the upstream works (LLaVA-1.5, LLaVA-OneVision, SigLIP, LLM-JP, STAIR Captions, ja-vg-vqa) as appropriate.
This model is released under the Apache License 2.0.
Note on training data and Japanese copyright law: Under Article 30-4 of the Japanese Copyright Act, the use of copyrighted works for the purpose of information analysis — including machine learning model training — is a permitted use that does not require authorization from, or trigger license conditions of, the copyright holders. Training of this model was conducted in Japan on this basis; the resulting model weights are redistributed under Apache-2.0.
Downstream users are responsible for complying with the licenses of any datasets or images they use for further fine-tuning or evaluation.
Built on top of outstanding open-source work, including: