Skip to content

How to write config file to build custom ViT via HuggingFace Hub #2035

Answered by rwightman
gau-nernst asked this question in Q&A
Discussion options

You must be logged in to vote

@gau-nernst it's on the main branch now, any interest in giving it a try before I put out a new release?

Intended to be used like this...

model_args=dict(global_pool='avg', act_layer='silu', fc_norm=False)
mm = timm.create_model('vit_base_patch16_clip_224', **model_args)
mm.load_state_dict(...)
push_to_hf_hub(mm, 'rwightman/test_vit_b16', model_args=model_args)

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@gau-nernst
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rwightman
Comment options

@gau-nernst
Comment options

Answer selected by gau-nernst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants