jsun39 commited on
Commit
713e5ed
·
verified ·
1 Parent(s): 6bee6af

Add model card

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ pipeline_tag: image-text-to-text
7
+ tags:
8
+ - multimodal
9
+ - mllm
10
+ - knowledge-distillation
11
+ - mobilevlm
12
+ - mobilellama
13
+ base_model: mtgv/MobileLLaMA-1.4B-Chat
14
+ ---
15
+
16
+ # Cosine-Beta-KD-Instance
17
+
18
+ A 1.7B multimodal LLM checkpoint distilled with **Cosine-KD + Beta-KD (Instance-level uncertainty weighting)**,
19
+ built on top of MobileVLM with
20
+ [`MobileLLaMA-1.4B-Chat`](https://huggingface.co/mtgv/MobileLLaMA-1.4B-Chat) as
21
+ the language backbone.
22
+
23
+ This checkpoint corresponds to the **`Beta-KD (Instance)`** row of the model
24
+ zoo in [Beta-KD: Uncertainty-Aware Knowledge Distillation for Multimodal Large
25
+ Language Models](https://arxiv.org/abs/2603.21426).
26
+
27
+ ## Model Details
28
+
29
+ | Item | Value |
30
+ |------|-------|
31
+ | Architecture | MobileVLM (CLIP visual encoder + LDP projector + MobileLLaMA LLM) |
32
+ | Language model | MobileLLaMA 1.4B |
33
+ | Distillation losses | Cosine-KD (logit alignment) + Beta-KD instance-level uncertainty loss |
34
+ | Training step | `checkpoint-18000` |
35
+ | Total params | ~1.7B |
36
+ | Precision | fp16 |
37
+
38
+ ## Evaluation
39
+
40
+ Evaluated on six standard multimodal benchmarks (no beam search, greedy
41
+ decoding to match the chat-demo behavior).
42
+
43
+ | Method | LLM | MME<sup>P</sup> | MME<sup>A</sup> | GQA | VQA<sup>T</sup> | POPE | MMB<sup>dev</sup> | SQA<sup>I</sup> | Avg. |
44
+ |--------|-----|------|------|------|------|------|------|------|------|
45
+ | Cosine-KD baseline | MobileLLaMA 1.4B | 1308.4 | 65.4 | 59.9 | 52.2 | 84.6 | 57.1 | 61.3 | 63.4 |
46
+ | + Beta-KD (Task) | MobileLLaMA 1.4B | **1352.0** | **67.6** | 60.8 | 53.9 | 85.4 | 59.1 | 61.2 | 64.7 |
47
+ | **+ Beta-KD (Instance)** *(this model)* | MobileLLaMA 1.4B | 1350.3 | 67.5 | **61.2** | **54.2** | **86.0** | **60.2** | **62.9** | **65.3** |
48
+
49
+ ## Usage
50
+
51
+ ```python
52
+ import torch
53
+ from transformers import AutoTokenizer, AutoModelForCausalLM
54
+
55
+ repo_id = "jsun39/Cosine-Beta-KD-Instance"
56
+
57
+ tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
58
+ model = AutoModelForCausalLM.from_pretrained(
59
+ repo_id,
60
+ torch_dtype=torch.float16,
61
+ trust_remote_code=True,
62
+ ).cuda()
63
+ ```
64
+
65
+ For full inference (image + text), please follow the inference example in the
66
+ [Beta-KD repo](https://github.com/Jingchensun/beta-kd) — the visual encoder /
67
+ projector loading, image preprocessing, and chat template are described there.
68
+
69
+ ## Files
70
+
71
+ This repo contains only the files needed for inference:
72
+
73
+ - `pytorch_model.bin` — fp16 weights
74
+ - `config.json`, `generation_config.json`
75
+ - `tokenizer.model`, `tokenizer_config.json`, `special_tokens_map.json`
76
+
77
+ DeepSpeed optimizer / RNG / trainer states are intentionally **not** uploaded.
78
+
79
+ ## Citation
80
+
81
+ ```bibtex
82
+ @article{sun2026betakd,
83
+ title = {Beta-KD: Uncertainty-Aware Knowledge Distillation for Multimodal
84
+ Large Language Models},
85
+ author = {Sun, Jingchen and others},
86
+ journal = {arXiv preprint arXiv:2603.21426},
87
+ year = {2026}
88
+ }
89
+ ```
90
+
91
+ ## License
92
+
93
+ Released under the Apache-2.0 license, inheriting from MobileVLM and
94
+ MobileLLaMA. The visual encoder and any third-party data follow their original
95
+ licenses.