skratos115/opendevin_DataDevinator
Viewer • Updated • 4.78k • 14 • 3
How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2")
sentences = [
"search_query: i love autotrain",
"search_query: huggingface auto train",
"search_query: hugging face auto train",
"search_query: i love autotrain"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 # Run inference directly in the terminal: llama cli -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 # Run inference directly in the terminal: llama cli -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 # Run inference directly in the terminal: ./llama-cli -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 # Run inference directly in the terminal: ./build/bin/llama-cli -hf unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
docker model run hf.co/unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with Ollama:
ollama run hf.co/unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 to start chatting
How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with Docker Model Runner:
docker model run hf.co/unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
How to use unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2 with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unclemusclez/SmolLM-135M-Instruct-DEVINator-v0.2
lemonade run user.SmolLM-135M-Instruct-DEVINator-v0.2-{{QUANT_TAG}}lemonade list
AVAILABLE ON OLLAMA: https://ollama.com/unclemusclez/smollm-135m-instruct-devinator
No validation metrics available
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)