Instructions to use tensorblock/AMD-Llama-135m-code-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/AMD-Llama-135m-code-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/AMD-Llama-135m-code-GGUF", filename="AMD-Llama-135m-code-Q2_K.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 tensorblock/AMD-Llama-135m-code-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
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 tensorblock/AMD-Llama-135m-code-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
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 tensorblock/AMD-Llama-135m-code-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/AMD-Llama-135m-code-GGUF with Ollama:
ollama run hf.co/tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/AMD-Llama-135m-code-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 tensorblock/AMD-Llama-135m-code-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 tensorblock/AMD-Llama-135m-code-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/AMD-Llama-135m-code-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/AMD-Llama-135m-code-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
- Lemonade
How to use tensorblock/AMD-Llama-135m-code-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/AMD-Llama-135m-code-GGUF:Q2_K
Run and chat with the model
lemonade run user.AMD-Llama-135m-code-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- AMD-Llama-135m-code-Q3_K_L.gguf +0 -3
- AMD-Llama-135m-code-Q3_K_S.gguf +0 -3
- AMD-Llama-135m-code-Q4_0.gguf +0 -3
- AMD-Llama-135m-code-Q4_K_M.gguf +0 -3
- AMD-Llama-135m-code-Q4_K_S.gguf +0 -3
- AMD-Llama-135m-code-Q5_0.gguf +0 -3
- AMD-Llama-135m-code-Q5_K_M.gguf +0 -3
- AMD-Llama-135m-code-Q5_K_S.gguf +0 -3
- AMD-Llama-135m-code-Q6_K.gguf +0 -3
- AMD-Llama-135m-code-Q8_0.gguf +0 -3
AMD-Llama-135m-code-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6e422db1e81b36e693699864e33fbae630d928bdd8e6d4c623d0b00ddca91123
|
| 3 |
-
size 76538560
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1a9f5e6b3b04e5de68fc5e3b62da7e1cec6b0dac5fb7b1bba6ffd8f80b380854
|
| 3 |
-
size 68022976
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9b460985829b05b562eb2897da420420d3e452d479fb358a5eceb793e9de3c26
|
| 3 |
-
size 82567360
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:db7f532e23a20ca9e246627c74efa84f1c9eab5a59340fe3675877edd93d41e9
|
| 3 |
-
size 85912768
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fbc7ca29b5e9d5a61219b031efc6c197738202080e08dd20714c10de514dac87
|
| 3 |
-
size 83058880
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ea419e6179bee9a9d7d6f5d8c31b1f7756fa6dfcf0da62d524a57db280f03e0d
|
| 3 |
-
size 96256192
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f096557c8afd64b90bf477760881574104faa752008b0c33a4cab7eb54e1c011
|
| 3 |
-
size 97979584
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1e6eb7260b108b81d8cb84860e266c687c3d5b1cacdefa25680d4331baa50fae
|
| 3 |
-
size 96256192
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b6f961b2cb51e8cbc7bf87ed0c2602ac603d4fdc8cf9ac78083fec14141a0541
|
| 3 |
-
size 110800576
|
|
|
|
|
|
|
|
|
|
|
|
AMD-Llama-135m-code-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:343c0e0f1452b2dfc527d6a8211391f3e8e8e8facd276efb80562b569f80c536
|
| 3 |
-
size 143274688
|
|
|
|
|
|
|
|
|
|
|
|