Instructions to use QuantFactory/UwU-7B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use QuantFactory/UwU-7B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/UwU-7B-Instruct-GGUF", filename="UwU-7B-Instruct.Q2_K.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 QuantFactory/UwU-7B-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 QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/UwU-7B-Instruct-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 QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/UwU-7B-Instruct-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 QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/UwU-7B-Instruct-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 QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QuantFactory/UwU-7B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/UwU-7B-Instruct-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": "QuantFactory/UwU-7B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
- Ollama
How to use QuantFactory/UwU-7B-Instruct-GGUF with Ollama:
ollama run hf.co/QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/UwU-7B-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 QuantFactory/UwU-7B-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 QuantFactory/UwU-7B-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 QuantFactory/UwU-7B-Instruct-GGUF to start chatting
- Pi new
How to use QuantFactory/UwU-7B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/UwU-7B-Instruct-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": "QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use QuantFactory/UwU-7B-Instruct-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 QuantFactory/UwU-7B-Instruct-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 QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use QuantFactory/UwU-7B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/UwU-7B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/UwU-7B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.UwU-7B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Improve language tag
Browse filesHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.
|
@@ -1,103 +1,112 @@
|
|
| 1 |
-
|
| 2 |
-
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- qingy2024/FineQwQ-142k
|
| 5 |
+
language:
|
| 6 |
+
- zho
|
| 7 |
+
- eng
|
| 8 |
+
- fra
|
| 9 |
+
- spa
|
| 10 |
+
- por
|
| 11 |
+
- deu
|
| 12 |
+
- ita
|
| 13 |
+
- rus
|
| 14 |
+
- jpn
|
| 15 |
+
- kor
|
| 16 |
+
- vie
|
| 17 |
+
- tha
|
| 18 |
+
- ara
|
| 19 |
+
base_model:
|
| 20 |
+
- Qwen/Qwen2.5-7B
|
| 21 |
+
pipeline_tag: text-generation
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
[](https://hf.co/QuantFactory)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
# QuantFactory/UwU-7B-Instruct-GGUF
|
| 28 |
+
This is quantized version of [qingy2024/UwU-7B-Instruct](https://huggingface.co/qingy2024/UwU-7B-Instruct) created using llama.cpp
|
| 29 |
+
|
| 30 |
+
# Original Model Card
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
## UwU 7B Instruct
|
| 34 |
+
|
| 35 |
+
Small QwQ, full-finetuned on FineQwQ-142K. Unlike my previous models, this one is a general-purpose reasoning machine!
|
| 36 |
+
|
| 37 |
+
Oh, and it also passes the strawberry test:
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
> How many 'r's are in the word strawberry?
|
| 41 |
+
Let's see. I have this word: "strawberry." I need to find out how many 'r's are in it. Okay, first, I should probably write down the word and look at each letter one by one.
|
| 42 |
+
|
| 43 |
+
So, "s-t-r-a-w-b-e-r-r-y."
|
| 44 |
+
|
| 45 |
+
Now, I need to count the 'r's. Let's go through each letter:
|
| 46 |
+
|
| 47 |
+
- The first letter is 's', which is not an 'r'.
|
| 48 |
+
|
| 49 |
+
- The second letter is 't', not an 'r'.
|
| 50 |
+
|
| 51 |
+
- The third letter is 'r', that's the first 'r'.
|
| 52 |
+
|
| 53 |
+
- The fourth letter is 'a', not an 'r'.
|
| 54 |
+
|
| 55 |
+
- The fifth letter is 'w', not an 'r'.
|
| 56 |
+
|
| 57 |
+
- The sixth letter is 'b', not an 'r'.
|
| 58 |
+
|
| 59 |
+
- The seventh letter is 'e', not an 'r'.
|
| 60 |
+
|
| 61 |
+
- The eighth letter is 'r', that's the second 'r'.
|
| 62 |
+
|
| 63 |
+
- The ninth letter is 'r', that's the third 'r'.
|
| 64 |
+
|
| 65 |
+
- The tenth letter is 'y', not an 'r'.
|
| 66 |
+
|
| 67 |
+
So, I have three 'r's in the word "strawberry." But wait, let me double-check. Maybe I missed one.
|
| 68 |
+
|
| 69 |
+
Let me count again:
|
| 70 |
+
|
| 71 |
+
1. 's'
|
| 72 |
+
|
| 73 |
+
2. 't'
|
| 74 |
+
|
| 75 |
+
3. 'r' (first 'r')
|
| 76 |
+
|
| 77 |
+
4. 'a'
|
| 78 |
+
|
| 79 |
+
5. 'w'
|
| 80 |
+
|
| 81 |
+
6. 'b'
|
| 82 |
+
|
| 83 |
+
7. 'e'
|
| 84 |
+
|
| 85 |
+
8. 'r' (second 'r')
|
| 86 |
+
|
| 87 |
+
9. 'r' (third 'r')
|
| 88 |
+
|
| 89 |
+
10. 'y'
|
| 90 |
+
|
| 91 |
+
Yes, that's three 'r's. I think that's correct.
|
| 92 |
+
|
| 93 |
+
Alternatively, maybe there's a smarter way to count them without listing out each letter. Let's see.
|
| 94 |
+
|
| 95 |
+
I know that the word "strawberry" has 10 letters, and I can recall that it has three 'r's. But to be sure, maybe I can look for patterns or something.
|
| 96 |
+
|
| 97 |
+
Another way is to use a tally mark or something similar. Let's try that.
|
| 98 |
+
|
| 99 |
+
First 'r': | (that's one)
|
| 100 |
+
|
| 101 |
+
Second 'r': | (that's two)
|
| 102 |
+
|
| 103 |
+
Third 'r': | (that's three)
|
| 104 |
+
|
| 105 |
+
Yes, that also gives me three 'r's.
|
| 106 |
+
|
| 107 |
+
I think I'm confident with that answer now. There are three 'r's in the word "strawberry."
|
| 108 |
+
|
| 109 |
+
**Final Answer**
|
| 110 |
+
|
| 111 |
+
\[ \boxed{3} \]
|
| 112 |
+
```
|