Object Detection
Transformers
Safetensors
locateanything
feature-extraction
locateanything,
custom_code
Instructions to use SD-Next/LocateAnything-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SD-Next/LocateAnything-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="SD-Next/LocateAnything-3B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SD-Next/LocateAnything-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,787 Bytes
1983b12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | {
"_attn_implementation": "sdpa",
"architectures": [
"LocateAnythingForConditionalGeneration"
],
"auto_map": {
"AutoConfig": "configuration_locateanything.LocateAnythingConfig",
"AutoModel": "modeling_locateanything.LocateAnythingForConditionalGeneration"
},
"box_end_token_id": 151669,
"box_start_token_id": 151668,
"coord_end_token_id": 152677,
"coord_start_token_id": 151677,
"image_token_index": 151665,
"model_type": "locateanything",
"none_token_id": 4064,
"ref_end_token_id": 151673,
"ref_start_token_id": 151672,
"text_config": {
"architectures": [
"Qwen2ForCausalLM"
],
"attention_dropout": 0.0,
"block_size": 6,
"bos_token_id": 151643,
"causal_attn": false,
"eos_token_id": 151645,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 11008,
"max_position_embeddings": 32768,
"max_window_layers": 70,
"model_type": "qwen2",
"null_token_id": 152678,
"num_attention_heads": 16,
"num_hidden_layers": 36,
"num_key_value_heads": 2,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 1000000.0,
"sliding_window": 32768,
"switch_token_id": 152679,
"text_mask_token_id": 151676,
"tie_word_embeddings": true,
"torch_dtype": "bfloat16",
"use_cache": false,
"use_sliding_window": false,
"vocab_size": 152681
},
"torch_dtype": "bfloat16",
"vision_config": {
"hidden_size": 1152,
"init_pos_emb_height": 64,
"init_pos_emb_width": 64,
"intermediate_size": 4304,
"merge_kernel_size": [
2,
2
],
"model_type": "moonvit",
"num_attention_heads": 16,
"num_hidden_layers": 27,
"patch_size": 14,
"torch_dtype": "bfloat16"
}
}
|