Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Alibaba-NLP
/
gme-Qwen2-VL-7B-Instruct

Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
Chinese
qwen2_vl
image-text-to-text
mteb
Qwen2-VL
vidore
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community
12

Instructions to use Alibaba-NLP/gme-Qwen2-VL-7B-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-7B-Instruct with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Alibaba-NLP/gme-Qwen2-VL-7B-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-7B-Instruct with Transformers:

    # Load model directly
    from transformers import AutoProcessor, AutoModelForImageTextToText
    
    processor = AutoProcessor.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-7B-Instruct", trust_remote_code=True)
    model = AutoModelForImageTextToText.from_pretrained("Alibaba-NLP/gme-Qwen2-VL-7B-Instruct", trust_remote_code=True)
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Release the UMRB

pinned
4
#2 opened over 1 year ago by
BestWishYsh

Can load and run model in GME-2B, but can't run in GME-7B version

🤯➕ 2
#12 opened 5 months ago by
azhukk28

About the training set

1
#11 opened 11 months ago by
hzf666

Use get_input_embeddings() Instead of Accessing .embed_tokens Directly

1
#8 opened 12 months ago by
Zhenzhao

training code supported

#6 opened about 1 year ago by
tastelikefeet

Question about the Figure 5 in ArXiv

4
#3 opened over 1 year ago by
BestWishYsh
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs