Update README.md
Browse files
README.md
CHANGED
@@ -43,6 +43,50 @@ This is an **early preview** of our 7B parameter pure RNN-based model, trained o
|
|
43 |
- 🧮 Math-specific improvements
|
44 |
- 📚 RL enhanced reasoning model
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
## How to use
|
47 |
|
48 |
```bash
|
|
|
43 |
- 🧮 Math-specific improvements
|
44 |
- 📚 RL enhanced reasoning model
|
45 |
|
46 |
+
# Infrence on AMD Radeon GPU By Llama.cpp
|
47 |
+
|
48 |
+
```bash
|
49 |
+
git clone https://github.com/MollySophia/llama.cpp.git -b rwkv-v7
|
50 |
+
cd llama.cpp
|
51 |
+
HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
|
52 |
+
cmake -S . -B build -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1030 -DCMAKE_BUILD_TYPE=Release \
|
53 |
+
&& cmake --build build --config Release -- -j 16
|
54 |
+
cd ./build/bin
|
55 |
+
```
|
56 |
+
### transform safetensor model to gguf
|
57 |
+
```bash
|
58 |
+
python ./convert_hf_to_gguf.py [model_dir]
|
59 |
+
```
|
60 |
+
### model Quantization
|
61 |
+
```bash
|
62 |
+
./llama-quantize [model_dir] [Quantization accuracy]
|
63 |
+
```
|
64 |
+
### Infrence model in Webui By llama-server
|
65 |
+
```bash
|
66 |
+
/llama-server -m [model_dir] -t [use_cpu_thread_number] -ngl 99 --host [host_number] --port [port_number]
|
67 |
+
```
|
68 |
+
```Radeon 7000 series use gfx1100 & Radeon 6000 series use gfx1030```
|
69 |
+
# Infrence on Nvidia GPU By Llama.cpp
|
70 |
+
```bash
|
71 |
+
git clone https://github.com/MollySophia/llama.cpp.git -b rwkv-v7
|
72 |
+
cd llama.cpp
|
73 |
+
cmake -B build -DGGML_CUDA=ON
|
74 |
+
cmake --build build --config Release
|
75 |
+
cd ./build/bin
|
76 |
+
```
|
77 |
+
### transform safetensor model to gguf
|
78 |
+
```bash
|
79 |
+
python ./convert_hf_to_gguf.py [model_dir]
|
80 |
+
```
|
81 |
+
### model Quantization
|
82 |
+
```bash
|
83 |
+
./llama-quantize [model_dir] [Quantization_accuracy]
|
84 |
+
```
|
85 |
+
### Infrence model in Webui By llama-server
|
86 |
+
```bash
|
87 |
+
/llama-server -m [model_dir] -t [use_cpu_thread_number] -ngl 99 --host [host_number] --port [port_number]
|
88 |
+
```
|
89 |
+
|
90 |
## How to use
|
91 |
|
92 |
```bash
|