Sentence Similarity
Transformers
Safetensors
sentence-transformers
English
French
qwen2
text-generation
mteb
Qwen2
custom_code
text-embeddings-inference
8-bit precision
gptq
Instructions to use ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ", 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] - Notebooks
- Google Colab
- Kaggle
This is the 8-bit quantized version of Alibaba-NLP/gte-Qwen2-1.5B-instruct by following the example from the AutoGPTQ repository.
- Downloads last month
- 7
Model tree for ktoprakucar/gte-Qwen2-1.5B-instruct-Q8-GPTQ
Base model
Alibaba-NLP/gte-Qwen2-1.5B-instruct