Instructions to use WithinUsAI/Agent.Nano.Coder-2B-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="WithinUsAI/Agent.Nano.Coder-2B-gguf", filename="Agent.Nano.Coder-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
Use pre-built binary
# 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 WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
Build from source code
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 WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
Use Docker
docker model run hf.co/WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with Ollama:
ollama run hf.co/WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
- Unsloth Studio
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 WithinUsAI/Agent.Nano.Coder-2B-gguf to start chatting
Install Unsloth Studio (Windows)
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 WithinUsAI/Agent.Nano.Coder-2B-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for WithinUsAI/Agent.Nano.Coder-2B-gguf to start chatting
- Docker Model Runner
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with Docker Model Runner:
docker model run hf.co/WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
- Lemonade
How to use WithinUsAI/Agent.Nano.Coder-2B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull WithinUsAI/Agent.Nano.Coder-2B-gguf:Q4_K_M
Run and chat with the model
lemonade run user.Agent.Nano.Coder-2B-gguf-Q4_K_M
List all available models
lemonade list
Guy DuGan II commited on
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets:
|
| 3 |
+
- bigcode/the-stack-v2
|
| 4 |
+
- yulan-team/YuLan-Mini-Datasets
|
| 5 |
+
- HuggingFaceFW/fineweb-edu
|
| 6 |
+
- bigcode/the-stack-v2
|
| 7 |
+
- mlfoundations/dclm-baseline-1.0
|
| 8 |
+
- math-ai/AutoMathText
|
| 9 |
+
- gair-prox/open-web-math-pro
|
| 10 |
+
- RUC-AIBOX/long_form_thought_data_5k
|
| 11 |
+
- internlm/Lean-Workbook
|
| 12 |
+
- internlm/Lean-Github
|
| 13 |
+
- deepseek-ai/DeepSeek-Prover-V1
|
| 14 |
+
- ScalableMath/Lean-STaR-base
|
| 15 |
+
- ScalableMath/Lean-STaR-plus
|
| 16 |
+
- ScalableMath/Lean-CoT-base
|
| 17 |
+
- ScalableMath/Lean-CoT-plus
|
| 18 |
+
- opencsg/chinese-fineweb-edu
|
| 19 |
+
- liwu/MNBVC
|
| 20 |
+
- vikp/textbook_quality_programming
|
| 21 |
+
- HuggingFaceTB/smollm-corpus
|
| 22 |
+
- OpenCoder-LLM/opc-annealing-corpus
|
| 23 |
+
- OpenCoder-LLM/opc-sft-stage1
|
| 24 |
+
- OpenCoder-LLM/opc-sft-stage2
|
| 25 |
+
- XinyaoHu/AMPS_mathematica
|
| 26 |
+
- deepmind/math_dataset
|
| 27 |
+
- mrfakename/basic-math-10m
|
| 28 |
+
- microsoft/orca-math-word-problems-200k
|
| 29 |
+
- AI-MO/NuminaMath-CoT
|
| 30 |
+
- HuggingFaceTB/cosmopedia
|
| 31 |
+
- MU-NLPC/Calc-ape210k
|
| 32 |
+
- manu/project_gutenberg
|
| 33 |
+
- storytracer/LoC-PD-Books
|
| 34 |
+
- allenai/dolma
|
| 35 |
+
---
|