matrixportal commited on
Commit
4a778d0
·
verified ·
1 Parent(s): 4316ff4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ license_link: https://huggingface.co/microsoft/Phi-4-mini-instruct/resolve/main/LICENSE
4
+ language:
5
+ - multilingual
6
+ - ar
7
+ - zh
8
+ - cs
9
+ - da
10
+ - nl
11
+ - en
12
+ - fi
13
+ - fr
14
+ - de
15
+ - he
16
+ - hu
17
+ - it
18
+ - ja
19
+ - ko
20
+ - 'no'
21
+ - pl
22
+ - pt
23
+ - ru
24
+ - es
25
+ - sv
26
+ - th
27
+ - tr
28
+ - uk
29
+ pipeline_tag: text-generation
30
+ tags:
31
+ - nlp
32
+ - code
33
+ - llama-cpp
34
+ - gguf-my-repo
35
+ widget:
36
+ - messages:
37
+ - role: user
38
+ content: Can you provide ways to eat combinations of bananas and dragonfruits?
39
+ library_name: transformers
40
+ base_model: microsoft/Phi-4-mini-instruct
41
+ ---
42
+
43
+ # matrixportal/Phi-4-mini-instruct-Q4_0-GGUF
44
+ This model was converted to GGUF format from [`microsoft/Phi-4-mini-instruct`](https://huggingface.co/microsoft/Phi-4-mini-instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
45
+ Refer to the [original model card](https://huggingface.co/microsoft/Phi-4-mini-instruct) for more details on the model.
46
+
47
+ ## Use with llama.cpp
48
+ Install llama.cpp through brew (works on Mac and Linux)
49
+
50
+ ```bash
51
+ brew install llama.cpp
52
+
53
+ ```
54
+ Invoke the llama.cpp server or the CLI.
55
+
56
+ ### CLI:
57
+ ```bash
58
+ llama-cli --hf-repo matrixportal/Phi-4-mini-instruct-Q4_0-GGUF --hf-file phi-4-mini-instruct-q4_0.gguf -p "The meaning to life and the universe is"
59
+ ```
60
+
61
+ ### Server:
62
+ ```bash
63
+ llama-server --hf-repo matrixportal/Phi-4-mini-instruct-Q4_0-GGUF --hf-file phi-4-mini-instruct-q4_0.gguf -c 2048
64
+ ```
65
+
66
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
67
+
68
+ Step 1: Clone llama.cpp from GitHub.
69
+ ```
70
+ git clone https://github.com/ggerganov/llama.cpp
71
+ ```
72
+
73
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
74
+ ```
75
+ cd llama.cpp && LLAMA_CURL=1 make
76
+ ```
77
+
78
+ Step 3: Run inference through the main binary.
79
+ ```
80
+ ./llama-cli --hf-repo matrixportal/Phi-4-mini-instruct-Q4_0-GGUF --hf-file phi-4-mini-instruct-q4_0.gguf -p "The meaning to life and the universe is"
81
+ ```
82
+ or
83
+ ```
84
+ ./llama-server --hf-repo matrixportal/Phi-4-mini-instruct-Q4_0-GGUF --hf-file phi-4-mini-instruct-q4_0.gguf -c 2048
85
+ ```