Instructions to use tensorblock/TinySolar-248m-4k-code-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/TinySolar-248m-4k-code-instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/TinySolar-248m-4k-code-instruct-GGUF", filename="TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/TinySolar-248m-4k-code-instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/TinySolar-248m-4k-code-instruct-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/TinySolar-248m-4k-code-instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/TinySolar-248m-4k-code-instruct-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-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/TinySolar-248m-4k-code-instruct-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/TinySolar-248m-4k-code-instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/TinySolar-248m-4k-code-instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/TinySolar-248m-4k-code-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/TinySolar-248m-4k-code-instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.TinySolar-248m-4k-code-instruct-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- TinySolar-248m-4k-code-instruct-Q3_K_L.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q3_K_S.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q4_0.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q4_K_M.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q4_K_S.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q5_0.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q5_K_M.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q5_K_S.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q6_K.gguf +0 -3
- TinySolar-248m-4k-code-instruct-Q8_0.gguf +0 -3
TinySolar-248m-4k-code-instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7ca7f6138341cee3fc8aea5ac364ad8abce57514d63937d0bd59f96175aa90ef
|
| 3 |
-
size 137215520
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:41fd4b3ea37cbc17ebcefb408be23cce25a4c005a55f16959e8c536d06c2e04d
|
| 3 |
-
size 120184352
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e2c1a964739f9070cd56cca2ca5616cae07e3f07465c318c7a5d5d3a96be8baf
|
| 3 |
-
size 148768288
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dfd5f6085100b61123e88884a874cf0af4bd8194dbab4b57f2d751459269c7c9
|
| 3 |
-
size 155661856
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ecde2830985909deba19c6916a6da8bfc750dff6608c50c493644ee43442b394
|
| 3 |
-
size 149423648
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7c1be4174468fde3040450912f65f8f447ec286bd814f436cd0caae1bac76a3b
|
| 3 |
-
size 175670816
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e6925ff607ed03d880cd8bb3dd7c5d235e0ab47e359767dd76297bb18253f791
|
| 3 |
-
size 179222048
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:525f0fdd4106742e393b02e171302f535426636cd036fde4db52e3dd62b77945
|
| 3 |
-
size 175670816
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cea14b329719fcd60add63174c71207866f5192a044da502219ff57a7af8f1e6
|
| 3 |
-
size 204254752
|
|
|
|
|
|
|
|
|
|
|
|
TinySolar-248m-4k-code-instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa5b4e12d7b9edea5ef95dcba63191a307b82a5328a60e32014003cf4bbbc5fa
|
| 3 |
-
size 264314400
|
|
|
|
|
|
|
|
|
|
|
|