Sentence Similarity
sentence-transformers
Safetensors
Transformers
MLX
qwen2
text-generation
mteb
Qwen2
mlx-my-repo
custom_code
Eval Results (legacy)
text-embeddings-inference
4-bit precision
Instructions to use BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx", 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 BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx", trust_remote_code=True) - MLX
How to use BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir gte-Qwen2-7B-instruct-Q4-mlx BillSYZhang/gte-Qwen2-7B-instruct-Q4-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
Incorrect prompt template
#1 opened about 1 year ago
by
gregbarbosa