Instructions to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF", filename="llama-2-7b-int4-python-code-20k-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
- Ollama
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with Ollama:
ollama run hf.co/tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-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/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
- Lemonade
How to use tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/edumunozsala_llama-2-7b-int4-python-code-20k-GGUF:Q2_K
Run and chat with the model
lemonade run user.edumunozsala_llama-2-7b-int4-python-code-20k-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- llama-2-7b-int4-python-code-20k-Q3_K_L.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q3_K_S.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q4_0.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q4_K_M.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q4_K_S.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q5_0.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q5_K_M.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q5_K_S.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q6_K.gguf +0 -3
- llama-2-7b-int4-python-code-20k-Q8_0.gguf +0 -3
llama-2-7b-int4-python-code-20k-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ce85558eee3fbe861a7397966e7d40bcfada67b23e883721fb849bd1062e8185
|
| 3 |
-
size 3597111840
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a2575129fe8d95441218c7596a899aeb393e52fdf2cec1375c44aa64732f0060
|
| 3 |
-
size 2948305440
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:79adc8674c9c6f8cf97119aaf8a5a20700e342ab4a107921ce5d1dc2286d576f
|
| 3 |
-
size 3825807904
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:eb9ef5dcca12cf31c86400787f0986f3a29aa9126dff7032ba9a4b59ab7ec56e
|
| 3 |
-
size 4081005088
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5793dd51ae2a769c1a5624472f49ea6c84f18a3b4dee8dacafcc7ee964e20e87
|
| 3 |
-
size 3856740896
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:881868ad0eaa14f33338e4d9f900e3a8c12d440ae18cfa4947946f60d799ebe6
|
| 3 |
-
size 4651692576
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ae088655b558ee245ac943701629b26bb48da65a369da81e2976fe427b3e8c34
|
| 3 |
-
size 4783157792
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:419e4893f88b78e8ec73a2028cb541cbeec8fc6d21271f3a60f3db36ca9cca9e
|
| 3 |
-
size 4651692576
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e19876c6a6989841d458f0e40263dc154f43aeec4439324d087d3cf70a12f8dc
|
| 3 |
-
size 5529195040
|
|
|
|
|
|
|
|
|
|
|
|
llama-2-7b-int4-python-code-20k-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7245477b33ff9b3b9c648d9f750f970e8f9d16a56d4fac475098546f4b497a85
|
| 3 |
-
size 7161090592
|
|
|
|
|
|
|
|
|
|
|
|