Downloads · 30 days
7
8% of all-time downloads
Alag2005/tiny-minicpm-o2_6-test
tiny-minicpm-o2_6-test is a machine learning model from Alag2005. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This folder contains a compressed MiniCPM-o-26-compatible model designed for testing and Optimum-Intel integration.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
92
Public
Repo size
9.7 MB
Likes
0
Public
Click a slice to open those files.
.bin6.6 MB · 100%
From the Hugging Face model README
This folder contains a compressed MiniCPM-o-2_6-compatible model designed for testing and Optimum-Intel integration.
minicpmo (MiniCPMOConfig / MiniCPMOForCausalLM)The model exposes a minimal vpm attribute for multimodal compatibility and a simple generate() method for basic generation tests.
config.json – Hugging Face config (auto_map, architectures, hyperparameters)pytorch_model.bin – model weights (~6.3 MB)configuration_minicpm.py – MiniCPMOConfig implementationmodeling_minicpmo.py – MiniCPMOForCausalLM implementation (with vpm and generate)tokenizer.json, tokenizer_config.json – minimal tokenizer definitionpreprocessor_config.json, processor_config.json – minimal image/processor configfrom transformers import AutoModelForCausalLM, AutoProcessor
model = AutoModelForCausalLM.from_pretrained(
"./tiny-minicpm",
trust_remote_code=True,
)
processor = AutoProcessor.from_pretrained("./tiny-minicpm")
# Dummy input ids for a quick forward pass
import torch
input_ids = torch.randint(0, model.config.vocab_size, (1, 8))
outputs = model(input_ids=input_ids)
print(outputs.logits.shape) # (1, 8, vocab_size)
The compressed model keeps the MiniCPM-o-2_6 causal LM structure, but with much smaller dimensions:
It is intended for correctness and integration testing, not for high-quality text generation.