Text Generation
Transformers
GGUF
English
code-generation
vulnerability-injection
security
vaitp
finetuned
conversational
Instructions to use mradermacher/CodePy-3B-Finetuned-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mradermacher/CodePy-3B-Finetuned-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/CodePy-3B-Finetuned-GGUF", dtype="auto") - llama-cpp-python
How to use mradermacher/CodePy-3B-Finetuned-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/CodePy-3B-Finetuned-GGUF", filename="CodePy-3B-Finetuned.IQ4_XS.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use mradermacher/CodePy-3B-Finetuned-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/CodePy-3B-Finetuned-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 mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/CodePy-3B-Finetuned-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 mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/CodePy-3B-Finetuned-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 mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use mradermacher/CodePy-3B-Finetuned-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mradermacher/CodePy-3B-Finetuned-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mradermacher/CodePy-3B-Finetuned-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
- SGLang
How to use mradermacher/CodePy-3B-Finetuned-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mradermacher/CodePy-3B-Finetuned-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mradermacher/CodePy-3B-Finetuned-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mradermacher/CodePy-3B-Finetuned-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mradermacher/CodePy-3B-Finetuned-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Ollama:
ollama run hf.co/mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/CodePy-3B-Finetuned-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 mradermacher/CodePy-3B-Finetuned-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 mradermacher/CodePy-3B-Finetuned-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/CodePy-3B-Finetuned-GGUF to start chatting
- Pi
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/CodePy-3B-Finetuned-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/CodePy-3B-Finetuned-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CodePy-3B-Finetuned-GGUF-Q4_K_M
List all available models
lemonade list
uploaded from nico1
Browse files- .gitattributes +12 -0
- CodePy-3B-Finetuned.IQ4_XS.gguf +3 -0
- CodePy-3B-Finetuned.Q2_K.gguf +3 -0
- CodePy-3B-Finetuned.Q3_K_L.gguf +3 -0
- CodePy-3B-Finetuned.Q3_K_M.gguf +3 -0
- CodePy-3B-Finetuned.Q3_K_S.gguf +3 -0
- CodePy-3B-Finetuned.Q4_K_M.gguf +3 -0
- CodePy-3B-Finetuned.Q4_K_S.gguf +3 -0
- CodePy-3B-Finetuned.Q5_K_M.gguf +3 -0
- CodePy-3B-Finetuned.Q5_K_S.gguf +3 -0
- CodePy-3B-Finetuned.Q6_K.gguf +3 -0
- CodePy-3B-Finetuned.Q8_0.gguf +3 -0
- CodePy-3B-Finetuned.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
CodePy-3B-Finetuned.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
CodePy-3B-Finetuned.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
CodePy-3B-Finetuned.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
CodePy-3B-Finetuned.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
CodePy-3B-Finetuned.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
CodePy-3B-Finetuned.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
CodePy-3B-Finetuned.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
CodePy-3B-Finetuned.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
CodePy-3B-Finetuned.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
CodePy-3B-Finetuned.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
CodePy-3B-Finetuned.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
CodePy-3B-Finetuned.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
CodePy-3B-Finetuned.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8169ff03b2a235c9c27990aeec456547d814bf0d8dc17fe8e6339a04c1c3c12
|
| 3 |
+
size 1840908064
|
CodePy-3B-Finetuned.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67254673f7d1391a07e67f9b177daa92121bd0985d8d94bf33c768a66c5676b6
|
| 3 |
+
size 1363937056
|
CodePy-3B-Finetuned.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07b816abeaca552c6d7acbca944e493c564048da399e371bf1a718133aba8e2a
|
| 3 |
+
size 1815349024
|
CodePy-3B-Finetuned.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edd5cd4a78bfabeb8f50ed13efb593916592ad516b673753ca2636d274d7219b
|
| 3 |
+
size 1687160608
|
CodePy-3B-Finetuned.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b01c1587a4e032dd7aa5b9221d03b779cf6ce2b8acd82587335c2b3455a5d9a
|
| 3 |
+
size 1542850336
|
CodePy-3B-Finetuned.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1870484f40f2a520429022c5f71ff5da5a8ce03f835bc336eff17461a8da9cb0
|
| 3 |
+
size 2019378976
|
CodePy-3B-Finetuned.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d9fc5cde97d40660591a57d61fb56ce5c74ac7e277b51354f77c463d9aa8f1f
|
| 3 |
+
size 1928202016
|
CodePy-3B-Finetuned.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bee318efa38568c5d55ec8cc353b036dcead34b9425533ad19ebbfff433a063
|
| 3 |
+
size 2322155296
|
CodePy-3B-Finetuned.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0d5a017773224c9cd497a20bc000fd9e49db89a42674bf1315404257a5e35be
|
| 3 |
+
size 2269513504
|
CodePy-3B-Finetuned.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecf61381925b7f156b0bb48c73008a3a625c3c0658c362d4a6af70f1b61d4c2f
|
| 3 |
+
size 2643855136
|
CodePy-3B-Finetuned.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee1a8d9b4bf09c35e30fe20b7b3a08fa428f28a549dc2bc0b99e9e9fe594d8bb
|
| 3 |
+
size 3421900576
|
CodePy-3B-Finetuned.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c1df059b4dadbb2673468a242036b8887192108cb0b9969e1ea895a2109b97f
|
| 3 |
+
size 6433689376
|