Instructions to use hmhm1229/ConceptFormer-Qwen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use hmhm1229/ConceptFormer-Qwen with PEFT:
from peft import PeftModel from transformers import AutoModel base_model = AutoModel.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct") model = PeftModel.from_pretrained(base_model, "hmhm1229/ConceptFormer-Qwen") - Notebooks
- Google Colab
- Kaggle
Download conceptformer_config.json from hmhm1229/ConceptFormer-Qwen: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/hmhm1229/ConceptFormer-Qwen/resolve/main/conceptformer_config.json
- Command line
-
hf download hf://hmhm1229/ConceptFormer-Qwen/conceptformer_config.json
-
curl -L -o conceptformer_config.json https://huggingface.co/hmhm1229/ConceptFormer-Qwen/resolve/main/conceptformer_config.json
337 Bytes
| { | |
| "architecture": "ConceptFormerRetriever", | |
| "base_model": "Qwen/Qwen2.5-VL-7B-Instruct", | |
| "special_tokens": ["<|lcon|>"], | |
| "dynamic_latent_length": true, | |
| "latent_pooling": "mean", | |
| "latent_kl_variant": "concept2image", | |
| "latent_align_mode": "forward", | |
| "latent_lambda_forward": 0.2, | |
| "state_file": "conceptformer_state.pt" | |
| } | |