Text Generation
llama-cpp-python
GGUF
llama.cpp
Mixture of Experts
ssd-offload
smallthinker
expert-paging
low-ram
Instructions to use HelloSun/SmallThinker4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use HelloSun/SmallThinker4b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="HelloSun/SmallThinker4b", filename="{{GGUF_FILE}}", )output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
Download .gitignore from HelloSun/SmallThinker4b: direct link, hf CLI and curl.
- Browser
- Download file 43 Bytes
-
https://huggingface.co/HelloSun/SmallThinker4b/resolve/main/.gitignore
- Command line
-
hf download hf://HelloSun/SmallThinker4b/.gitignore
-
curl -L -o .gitignore https://huggingface.co/HelloSun/SmallThinker4b/resolve/main/.gitignore
43 Bytes
| .hf_token | |
| __pycache__/ | |
| *.pyc | |
| validate/*.tmp |