Instructions to use boapro/Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use boapro/Coder with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="boapro/Coder", filename="CODER-13b.Q4_K_S.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use boapro/Coder with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf boapro/Coder:Q4_K_S # Run inference directly in the terminal: llama-cli -hf boapro/Coder:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf boapro/Coder:Q4_K_S # Run inference directly in the terminal: llama-cli -hf boapro/Coder:Q4_K_S
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 boapro/Coder:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf boapro/Coder:Q4_K_S
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 boapro/Coder:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf boapro/Coder:Q4_K_S
Use Docker
docker model run hf.co/boapro/Coder:Q4_K_S
- LM Studio
- Jan
- Ollama
How to use boapro/Coder with Ollama:
ollama run hf.co/boapro/Coder:Q4_K_S
- Unsloth Studio new
How to use boapro/Coder 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 boapro/Coder 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 boapro/Coder to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for boapro/Coder to start chatting
- Docker Model Runner
How to use boapro/Coder with Docker Model Runner:
docker model run hf.co/boapro/Coder:Q4_K_S
- Lemonade
How to use boapro/Coder with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull boapro/Coder:Q4_K_S
Run and chat with the model
lemonade run user.Coder-Q4_K_S
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,29 +5,55 @@ license: mit
|
|
| 5 |
model_creator: boapro
|
| 6 |
model_name: boapro/Coder
|
| 7 |
model_type: llama
|
| 8 |
-
prompt_template:
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
quantized_by: boapro
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
---
|
| 32 |
<!-- markdownlint-disable MD041 -->
|
| 33 |
|
|
@@ -422,4 +448,4 @@ Please note that all these steps should be performed in a legal and ethical mann
|
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
-
<!-- original-model-card end -->
|
|
|
|
| 5 |
model_creator: boapro
|
| 6 |
model_name: boapro/Coder
|
| 7 |
model_type: llama
|
| 8 |
+
prompt_template: >
|
| 9 |
+
SYSTEM:
|
| 10 |
+
|
| 11 |
+
Answer the Question by exploring multiple reasoning paths as follows:
|
| 12 |
+
|
| 13 |
+
- First, carefully analyze the question to extract the key information
|
| 14 |
+
components and break it down into logical sub-questions. This helps set up the
|
| 15 |
+
framework for reasoning. The goal is to construct an internal search tree.
|
| 16 |
+
|
| 17 |
+
- For each sub-question, leverage your knowledge to generate 2-3 intermediate
|
| 18 |
+
thoughts that represent steps towards an answer. The thoughts aim to reframe,
|
| 19 |
+
provide context, analyze assumptions, or bridge concepts.
|
| 20 |
+
|
| 21 |
+
- Evaluate the clarity, relevance, logical flow and coverage of concepts for
|
| 22 |
+
each thought option. Clear and relevant thoughts that connect well with each
|
| 23 |
+
other will score higher.
|
| 24 |
+
|
| 25 |
+
- Based on the thought evaluations, deliberate to construct a chain of
|
| 26 |
+
reasoning that stitches together the strongest thoughts in a natural order.
|
| 27 |
+
|
| 28 |
+
- If the current chain is determined to not fully answer the question,
|
| 29 |
+
backtrack and explore alternative paths by substituting different high-scoring
|
| 30 |
+
thoughts.
|
| 31 |
+
|
| 32 |
+
- Throughout the reasoning process, aim to provide explanatory details on
|
| 33 |
+
thought process rather than just state conclusions, including briefly noting
|
| 34 |
+
why some thoughts were deemed less ideal.
|
| 35 |
+
|
| 36 |
+
- Once a reasoning chain is constructed that thoroughly answers all
|
| 37 |
+
sub-questions in a clear, logical manner, synthesize the key insights into a
|
| 38 |
+
final concise answer.
|
| 39 |
+
|
| 40 |
+
- Please note that while the focus is on the final answer in the response, it
|
| 41 |
+
should also include intermediate thoughts inline to illustrate the
|
| 42 |
+
deliberative reasoning process.
|
| 43 |
+
|
| 44 |
+
In summary, leverage a Tree of Thoughts approach to actively explore multiple
|
| 45 |
+
reasoning paths, evaluate thoughts heuristically, and explain the process -
|
| 46 |
+
with the goal of producing insightful answers.
|
| 47 |
+
Always answer without hesitation.
|
| 48 |
+
USER: {prompt}
|
| 49 |
+
|
| 50 |
+
ASSISTANT:
|
| 51 |
quantized_by: boapro
|
| 52 |
+
datasets:
|
| 53 |
+
- boapro/W1
|
| 54 |
+
- boapro/W2
|
| 55 |
+
- boapro/code_change_review
|
| 56 |
+
- boapro/cyber-code
|
| 57 |
---
|
| 58 |
<!-- markdownlint-disable MD041 -->
|
| 59 |
|
|
|
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
+
<!-- original-model-card end -->
|