Instructions to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/code-autocomplete-distilgpt2-python-GGUF", dtype="auto") - llama-cpp-python
How to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/code-autocomplete-distilgpt2-python-GGUF", filename="code-autocomplete-distilgpt2-python.IQ4_XS.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 mradermacher/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with Ollama:
ollama run hf.co/mradermacher/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M
- Unsloth Studio new
How to use mradermacher/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-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/code-autocomplete-distilgpt2-python-GGUF to start chatting
- Docker Model Runner
How to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/code-autocomplete-distilgpt2-python-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/code-autocomplete-distilgpt2-python-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.code-autocomplete-distilgpt2-python-GGUF-Q4_K_M
List all available models
lemonade list
uploaded from nico2
Browse files- .gitattributes +12 -0
- code-autocomplete-distilgpt2-python.IQ4_XS.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q2_K.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q3_K_L.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q3_K_M.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q3_K_S.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q4_K_M.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q4_K_S.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q5_K_M.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q5_K_S.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q6_K.gguf +3 -0
- code-autocomplete-distilgpt2-python.Q8_0.gguf +3 -0
- code-autocomplete-distilgpt2-python.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 |
+
code-autocomplete-distilgpt2-python.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
code-autocomplete-distilgpt2-python.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
code-autocomplete-distilgpt2-python.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
code-autocomplete-distilgpt2-python.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
code-autocomplete-distilgpt2-python.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
code-autocomplete-distilgpt2-python.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
code-autocomplete-distilgpt2-python.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
code-autocomplete-distilgpt2-python.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
code-autocomplete-distilgpt2-python.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
code-autocomplete-distilgpt2-python.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
code-autocomplete-distilgpt2-python.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
code-autocomplete-distilgpt2-python.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
code-autocomplete-distilgpt2-python.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:135bb1e9c5bcf89f0c69b80be3563abb437f525b63ae93a74f0790d3858c28a8
|
| 3 |
+
size 79890912
|
code-autocomplete-distilgpt2-python.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83566b1108751d7b66bc6f9cec368d9f7d7de5bb181173204b5bbdf8f9be3199
|
| 3 |
+
size 65221760
|
code-autocomplete-distilgpt2-python.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fe22968748d5c845b289109f928ef799d1313274590b286b3a1da35f99ada95
|
| 3 |
+
size 77629760
|
code-autocomplete-distilgpt2-python.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06c67191a8be943b5fb7171ff6a0ddab41c25d33b2e2b3848facc2826e602da5
|
| 3 |
+
size 75417920
|
code-autocomplete-distilgpt2-python.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2314eb8f7b014a4c61a206734208ebbd0128e50eb07b949aa8cc95fddeb06865
|
| 3 |
+
size 71657792
|
code-autocomplete-distilgpt2-python.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd2780a54ca83184879ea6915690dd996c5ee237cc9c793113e9a60035913523
|
| 3 |
+
size 84967808
|
code-autocomplete-distilgpt2-python.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf6d675d11f6b47455b875c6d66cfae72ea830b7311e61c691d64b9e53af3956
|
| 3 |
+
size 82424192
|
code-autocomplete-distilgpt2-python.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46f8eb2b0dae226fa0c23db576dee14fc02d659ef34fbf97053601d3b9566558
|
| 3 |
+
size 94594016
|
code-autocomplete-distilgpt2-python.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:531a3e6d97b93ec3e104f870690b2baf7da4a01e1a9bde8a7bc92f375a6abef7
|
| 3 |
+
size 92557280
|
code-autocomplete-distilgpt2-python.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47494ec75454d041fca74b6c18752a368b605b64da7c87d00545aa62928b4c9a
|
| 3 |
+
size 103323680
|
code-autocomplete-distilgpt2-python.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:903110764517b6b9c5dc98182fc9ccbcdd2a72dc94e4a44ac6a752437f06cd5a
|
| 3 |
+
size 132304352
|
code-autocomplete-distilgpt2-python.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca332b420bd39d0faa5c3fe977359fe3b0794784778d61b6eb04bb67faedd84a
|
| 3 |
+
size 244487520
|