No matches. Try a model format, tool name or error.
On this page
Switch from Hugging Face in one line
Use Hugging Bay with huggingface_hub or Transformers, or run a downloaded GGUF in llama.cpp, LM Studio, or Ollama.
Set the endpoint before starting Python. Keep the model ID and your existing code. Try this in a shell that has huggingface_hub or transformers installed.
export HF_ENDPOINT=https://huggingbay.xyz
Use this endpoint for public model files. If you have a Hugging Face token saved or set in your shell, set HF_HUB_DISABLE_IMPLICIT_TOKEN=1 as well and omit any explicit token. A catalog entry can exist even when a requested file or revision is unavailable.
huggingface_hub
Both a single file and a full snapshot downloaded from a fresh cache with huggingface_hub 1.3.7.
from huggingface_hub import hf_hub_download, snapshot_download
repo = "HuggingFaceTB/SmolLM2-135M-Instruct"
config = hf_hub_download(repo, "config.json")
snapshot = snapshot_download(repo)
Transformers
With Transformers 5.0.0 and PyTorch 2.10.0, the tokenizer and model loaded from the repo ID and generated text locally.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "HuggingFaceTB/SmolLM2-135M-Instruct"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
inputs = tokenizer("The capital of France is", return_tensors="pt")
output = model.generate(**inputs, max_new_tokens=8, do_sample=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))
llama.cpp
In llama.cpp build 10964, -hf with MODEL_ENDPOINT=https://huggingbay.xyz received HTTP 404 while resolving the repo revision. Download the GGUF directly and pass its path with -m. This example generated text.
curl -fL 'https://huggingbay.xyz/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf' -o 'SmolLM2-135M-Instruct-Q4_K_M.gguf'
llama-completion -m 'SmolLM2-135M-Instruct-Q4_K_M.gguf' -p 'The capital of France is' -n 8
LM Studio
Use the GGUF downloaded above. Import and chat worked with the LM Studio CLI (commit dcefd5a). Use the local import flow for Hugging Bay files. LM Studio’s built-in download search has no verified Hugging Bay endpoint switch.
lms import 'SmolLM2-135M-Instruct-Q4_K_M.gguf' --copy --user-repo 'bartowski/SmolLM2-135M-Instruct-GGUF'
lms chat 'bartowski/SmolLM2-135M-Instruct-GGUF' -p 'What is the capital of France?'
Ollama
Ollama 0.17.7 pulled and ran this model from the Hugging Bay registry. Only registry entries work with this syntax. A direct registry pull for the SmolLM2 GGUF above returned “file does not exist”.
ollama run huggingbay.xyz/qwen/qwen2.5-0.5b-instruct:q4_k_m 'What is the capital of France?'
To use the downloaded SmolLM2 file in Ollama, save this Modelfile next to the GGUF.
FROM ./SmolLM2-135M-Instruct-Q4_K_M.gguf
ollama create smollm2-bay -f Modelfile
ollama run smollm2-bay 'What is the capital of France?'
Examples tested against huggingbay.xyz on November 28, 2026. Check the model page for file availability, license and memory requirements.
Updated .
Page sources
Page-copy source revision 8871bab84e1cf80aea1686a944ec335078a6c036 · Source files: apps/web/server.mjs, apps/web/lib/aeo-page.mjs, apps/web/lib/api-status-contract.mjs, apps/web/lib/agent-readable.mjs, apps/web/lib/docs-hub-model.mjs, apps/web/lib/compare-pages.mjs · Full revision record