How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2",
	filename="SmolLM-135M-Instruct-DEVINator-v0.2.gguf",
)
llm.create_chat_completion(
	messages = "{\n    \"source_sentence\": \"That is a happy person\",\n    \"sentences\": [\n        \"That is a happy dog\",\n        \"That is a very happy person\",\n        \"Today is a sunny day\"\n    ]\n}"
)

AVAILABLE ON OLLAMA: https://ollama.com/unclemusclez/smollm-135m-instruct-devinator

Model Trained Using AutoTrain

  • Problem type: Sentence Transformers

Validation Metrics

No validation metrics available

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import SentenceTransformer

# Download from the Hugging Face Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
    'search_query: autotrain',
    'search_query: auto train',
    'search_query: i love autotrain',
]
embeddings = model.encode(sentences)
print(embeddings.shape)

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
Downloads last month
20
Safetensors
Model size
0.1B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2

Quantized
(31)
this model
Quantizations
1 model

Dataset used to train unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2

Collection including unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2