Project author team stay tuned: I found out that the llama3-V project is stealing a lot of academic work from MiniCPM-Llama3-V 2.5

· GitHub ·

2 min read Original article ↗

https://gist.github.com/TomoshibiAkira/151a2353b946aa9cd8d4d2cdabc31245

Quickly wrote a script to compare the delta of the two weights (LLaMa3V with @Cuiunbo 's link, MiniCPM is from HF), calculate the delta's mean and std and abs(delta)'s mean for every layer, and finally print the histogram across all layers.
You'll need a GPU to run this since some of the them (such as embeddings) are pretty large.

Anyway, here's the final histogram:
Mean of delta:
(array([ 7, 30, 37, 78, 463, 65, 32, 17, 9, 3], dtype=int64), array([-8.14795494e-05, -6.32882118e-05, -4.50968742e-05, -2.69055367e-05, -8.71419907e-06, 9.47713852e-06, 2.76684761e-05, 4.58598137e-05, 6.40511513e-05, 8.22424889e-05, 1.00433826e-04]))
Almost all means of deltas are around 0 across all layers, the maximum is 1e-4.
Since the weight's mean for every layer are around 1e-2 to 1, so the difference is very small.

Std of delta:
(array([ 1, 0, 1, 0, 1, 2, 1, 402, 329, 4], dtype=int64), array([0.00042295, 0.00054622, 0.00066948, 0.00079274, 0.000916 , 0.00103927, 0.00116253, 0.00128579, 0.00140905, 0.00153232, 0.00165558]))
Almost all of them are clustered into 1.2e-3 to 1.4e-3.

Mean of abs(delta):
(array([ 2, 1, 3, 0, 0, 1, 1, 4, 13, 716], dtype=int64), array([6.40153885e-05, 1.76632404e-04, 2.89249420e-04, 4.01866436e-04, 5.14483452e-04, 6.27100468e-04, 7.39717484e-04, 8.52334499e-04, 9.64951515e-04, 1.07756853e-03, 1.19018555e-03]))
Usually the gradients become smaller as the backprop chain gets longer, thus abs(delta) should at least have some "gradual decreasing" type of distribution, but it seems all of them are grouped in 1.07e-3 to 1.19e-3.