HuggingFaceTB/smollm-corpus
Viewer • Updated • 237M • 62.6k • 457
How to use stillerman/SmolLM-360M-Instruct-Llamafile with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("stillerman/SmolLM-360M-Instruct-Llamafile", dtype="auto")How to use stillerman/SmolLM-360M-Instruct-Llamafile with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="stillerman/SmolLM-360M-Instruct-Llamafile", filename="SmolLM-360M-Instruct-F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
How to use stillerman/SmolLM-360M-Instruct-Llamafile with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16 # Run inference directly in the terminal: llama-cli -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16 # Run inference directly in the terminal: llama-cli -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16
# 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 stillerman/SmolLM-360M-Instruct-Llamafile:F16 # Run inference directly in the terminal: ./llama-cli -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16
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 stillerman/SmolLM-360M-Instruct-Llamafile:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf stillerman/SmolLM-360M-Instruct-Llamafile:F16
docker model run hf.co/stillerman/SmolLM-360M-Instruct-Llamafile:F16
How to use stillerman/SmolLM-360M-Instruct-Llamafile with Ollama:
ollama run hf.co/stillerman/SmolLM-360M-Instruct-Llamafile:F16
How to use stillerman/SmolLM-360M-Instruct-Llamafile 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 stillerman/SmolLM-360M-Instruct-Llamafile 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 stillerman/SmolLM-360M-Instruct-Llamafile to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for stillerman/SmolLM-360M-Instruct-Llamafile to start chatting
How to use stillerman/SmolLM-360M-Instruct-Llamafile with Docker Model Runner:
docker model run hf.co/stillerman/SmolLM-360M-Instruct-Llamafile:F16
How to use stillerman/SmolLM-360M-Instruct-Llamafile with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull stillerman/SmolLM-360M-Instruct-Llamafile:F16
lemonade run user.SmolLM-360M-Instruct-Llamafile-F16
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)This repo contains .gguf and .llamafile files for SmolLM-360M-Instruct. Llamafiles are single-file executables (called a "llamafile") that run locally on most computers, with no installation.
wget https://huggingface.co/stillerman/SmolLM-360M-Instruct-Llamafile/resolve/main/SmolLM-360M-Instruct-F16.llamafile
chmod a+x SmolLM-360M-Instruct-F16.llamafile
./SmolLM-360M-Instruct-F16.llamafile
16-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="stillerman/SmolLM-360M-Instruct-Llamafile", filename="SmolLM-360M-Instruct-F16.gguf", )