Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_id = 'FastVLM-7B-Stage2'
4tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True, use_fast=False)
5model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype='auto', trust_remote_code=True)1git clone https://github.com/alibaba/MNN
2cd MNN/transformers/llm/export
3python llmexport.py --path /path/to/FastVLM-7B-Stage2 --export mnn@InProceedings{fastvlm2025,
author = {Pavan Kumar Anasosalu Vasu, Fartash Faghri, Chun-Liang Li, Cem Koc, Nate True, Albert Antony, Gokul Santhanam, James Gabriel, Peter Grasch, Oncel Tuzel, Hadi Pouransari},
title = {FastVLM: Efficient Vision Encoding for Vision Language Models},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2025},
}{2023}