Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
Chinese
qwen2_vl
image-text-to-text
mteb
Qwen2-VL
vidore
custom_code
Eval Results (legacy)
Instructions to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", trust_remote_code=True) sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use Alibaba-NLP/gme-Qwen2-VL-2B-Instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-2B-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix mdoel loading (#17)
Verified signature- Fix mdoel loading (bd36ab0de70e8c918ebaef21ab674e45760e489b) - Update README.md (333d6e0ec3210304dc43a4c7d75731378c4aa612) - Update modeling_gme_qwen2vl.py (280b82673f3afce78487f0287755a7cc23199420) - Update config.json (4174ed03d1015398958742e9dcc4c34277640a4f) - Update README.md (dca92bddc7528a380b87c21f5383c8c856c27143) - Update modeling_gme_qwen2vl.py (39953e5c545ac83822ad50cb3ef09214db7fbba5) - Update README.md (62f5d69e260988e066a2e60c59180d25151d5e9b)9cfa641 -
Update custom_st.py (#19)
Verified signature- Update custom_st.py (89146e49f8e1cd1cd5231642a803167c3868f443) - Update custom_st.py (23e2bf96c6f5d8b13f352d4ac29cd153f522ab91) - Update custom_st.py (7a9a21cc961c2fd89de1c56c616a7c64e9cbcd2a) Co-authored-by: kosung <kosung@users.noreply.huggingface.co>5b46bc4
-
Update README.md
Verified signature40ed72b -
Update README.md
Verified signatureb8307cc -
Integrate to AutoModel (#10)
Verified signature- Try to integrate AutoModel (24370b049274f4d06c01d479db9cae41ade39e56) - Update gme_inference.py (02d3017aa1d162ad0ee332345548a1b28351e07a) - Update README.md (2944f212de0c1ccbe1bc993d660f4a3919b532ee) - Update README.md (5fa49f4b1ef97eacaf12285d8aca835728b89f68) - lint (e0e7250f5772018b48d567e195e682d7f4a52586) - Create modeling_gme_qwen2vl.py (fd9d1a41f746fa74148ccffaf660f7378a0a1026) - Update config.json (e93daf4018038593fb92d37d3fd1c2fe61f88d12) - revert gme_inference.py (facd32fbf0276e7365b453eb1400abdf5c0fee5e) - Update README.md (9e37c1412199889941439551345ead1317bc7e46) - revert README.md (4e639a8908b3d2d559abe9feaebe99cd19c5806e) Co-authored-by: Solomatin Roman <Samoed@users.noreply.huggingface.co>73dd060 -
Integrate sentence transformers (#9)
Verified signature- Base Integration with SentenceTransformers (2df56dc77ce0fbca90c338d38d2cffb4de4c9ea0) - Update custom_st.py (f70ad8d07b0f89da5c767bc57d3453b8923938ac) - Update README.md (27b4e411bf08eee10f4bd27941807530cce3099f) - Update README.md (5b4def35a3fdbbe9c547cd2fce25896feb492d97) - Update README.md (5ff08124217cda0a6a0a48ab93ada3aa2ac0a1c8) - Update README.md (4f9008b5898196357c0cc9c767d767af1235cc32) Co-authored-by: Solomatin Roman <Samoed@users.noreply.huggingface.co>c937797
-
Update gme_inference.py (#15)
Verified signature- Update gme_inference.py (cd3297f4dbd887b20d6d47e5e6030199ff903532) Co-authored-by: Tanvir Ahmed <AhVir@users.noreply.huggingface.co>0e7360a
-
Update gme_inference.py (#14)
Verified signature- Update gme_inference.py (543f9537e1e58b9a08bdf9cae7100e0059bc7f7d) Co-authored-by: Tanvir Ahmed <AhVir@users.noreply.huggingface.co>458d157
-
Support fine-tuning (#11)
Verified signaturec51589a
-
Support fine-tuning (#12)
Verified signature- Support fine-tuning (e4ba00a6eb250bc79ec0b967a85cba2022d6b93c) Co-authored-by: tastelikefeet <tastelikefeet@users.noreply.huggingface.co>01eeb05
-
Update README.md
Verified signaturecfeb668
-
Update README.md
Verified signaturead6c5b3
-
Update README.md
Verified signaturece765ae -
Create results.json
Verified signaturee6da526 -
Update README.md
Verified signatureb31e480 -
Update README.md
Verified signature67367e2 -
Update README.md
Verified signature05481d1 -
Update README.md
Verified signaturea62d4ef
-
Update README.md
Verified signature615ba56
-
Update README.md
Verified signatureb5fae3f -
Update README.md
Verified signature8a9317b -
Upload gme_logo.png
Verified signaturef08605f -
Delete images/gme_logo.pdf
Verified signatured00574c -
Update README.md
Verified signaturedb31277 -
Update README.md
Verified signaturef13d191 -
Update README.md
Verified signature8584213 -
Update README.md
Verified signaturec013eb4 -
Upload gme_logo.pdf
Verified signature0f07553 -
Init (#1)
Verified signature- Init (00cb9c04bbf5639a1ebcf9c6a18849008e3dbaee) - Upload files (748be87653a72bcd943b3b67296565b26d71793e) - Create gme_inference.py (22270be06dd84a446686b37ab573392089f4c9b0) - Update gme_inference.py (535408889784412d6f8886c67119190f5b7ab117) - Update README.md (845c61fa06d42e9796680363dcebc18880c57855) Co-authored-by: Xin Zhang <izhx@users.noreply.huggingface.co>aa986cd -
initial commit
Verified signaturecef864e