Visual Document Retrieval
Transformers
Safetensors
multilingual
neomme
multimodal
document-retrieval
late-interaction
dense-retrieval
Instructions to use Hcompany/NeoMME-260M-Retriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hcompany/NeoMME-260M-Retriever with Transformers:
# Load model directly from transformers import AutoProcessor, NeoMMEForRetrieval processor = AutoProcessor.from_pretrained("Hcompany/NeoMME-260M-Retriever") model = NeoMMEForRetrieval.from_pretrained("Hcompany/NeoMME-260M-Retriever", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Hcompany/NeoMME-260M-Retriever: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/Hcompany/NeoMME-260M-Retriever/resolve/main/config.json
- Command line
-
hf download hf://Hcompany/NeoMME-260M-Retriever/config.json
-
curl -L -o config.json https://huggingface.co/Hcompany/NeoMME-260M-Retriever/resolve/main/config.json
1.98 kB
| { | |
| "architectures": [ | |
| "NeoMMEForRetrieval" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "document_token_id": 5, | |
| "dtype": "bfloat16", | |
| "embedding_dim": 128, | |
| "embedding_rank": 256, | |
| "head_dim": 64, | |
| "hidden_act": "relu2", | |
| "hidden_size": 1024, | |
| "image_token_id": 6, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3584, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 16384, | |
| "mlp_bias": false, | |
| "model_type": "neomme", | |
| "norm_eps": 1e-06, | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 17, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": 0, | |
| "patch_size": 32, | |
| "per_layer_config": { | |
| "01": { | |
| "sliding_window": 1024 | |
| }, | |
| "03": { | |
| "sliding_window": 1024 | |
| }, | |
| "05": { | |
| "sliding_window": null | |
| }, | |
| "06": { | |
| "sliding_window": 1024 | |
| }, | |
| "08": { | |
| "sliding_window": 1024 | |
| }, | |
| "10": { | |
| "sliding_window": 1024 | |
| }, | |
| "11": { | |
| "sliding_window": null | |
| }, | |
| "13": { | |
| "sliding_window": 1024 | |
| }, | |
| "15": { | |
| "sliding_window": 1024 | |
| }, | |
| "16": { | |
| "sliding_window": null | |
| } | |
| }, | |
| "residual_multiplier": 0.17149858514250885, | |
| "rope_parameters": { | |
| "full_attention": { | |
| "partial_rotary_factor": 0.25, | |
| "rope_theta": 1000000.0, | |
| "rope_type": "default" | |
| }, | |
| "sliding_attention": { | |
| "partial_rotary_factor": 1.0, | |
| "rope_theta": 10000.0, | |
| "rope_type": "default" | |
| } | |
| }, | |
| "sliding_window": 256, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.16.0.dev0", | |
| "vocab_size": 131072 | |
| } | |