File tree Expand file tree Collapse file tree 6 files changed +37
-5
lines changed Expand file tree Collapse file tree 6 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# Ignore Sublime Text files.
6
6
* .sublime-workspace
7
-
8
- # Ignore OpenBLAS directories and files
9
- vendor /OpenBLAS /*
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.1.0] - 2023-07-03
8
+
9
+ ### Added
10
+ - Add dataset "wikitext-2-raw-v1"
11
+ - Add documentation on how to measure model perplexity
12
+
7
13
## [ 1.0.0] - 2023-06-28
8
14
9
15
### Added
Original file line number Diff line number Diff line change @@ -103,6 +103,20 @@ You can now chat with the model:
103
103
--interactive
104
104
```
105
105
106
+ ### Measure model perplexity
107
+
108
+ Execute the following to measure the perplexity of the GGML formatted model:
109
+
110
+ ``` PowerShell
111
+ ./vendor/llama.cpp/build/bin/Release/perplexity `
112
+ --model "./vendor/llama.cpp/models/open-llama-7B-open-instruct.ggmlv3.q4_K_M.bin" `
113
+ --ctx-size 2048 `
114
+ --n-predict 2048 `
115
+ --threads 16 `
116
+ --n-gpu-layers 32 `
117
+ --file "./vendor/wikitext-2-raw-v1/wikitext-2-raw/wiki.test.raw"
118
+ ```
119
+
106
120
### Rebuild llama.cpp
107
121
108
122
Every time there is a new release of [ llama.cpp] ( https://github.com/ggerganov/llama.cpp ) you can simply execute the script to automatically rebuild everything:
Original file line number Diff line number Diff line change @@ -37,6 +37,18 @@ if (-not(Test-Path -Path "./vendor/OpenBLAS/OpenBLAS-${openBLASVersion}-x64.zip"
37
37
- Force
38
38
}
39
39
40
+ if (-not (Test-Path - Path " ./vendor/wikitext-2-raw-v1/wikitext-2-raw-v1.zip" )) {
41
+
42
+ Invoke-WebRequest `
43
+ - Uri " https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-raw-v1.zip" `
44
+ - OutFile " ./vendor/wikitext-2-raw-v1/wikitext-2-raw-v1.zip"
45
+
46
+ Expand-Archive `
47
+ - Path " ./vendor/wikitext-2-raw-v1/wikitext-2-raw-v1.zip" `
48
+ - DestinationPath " ./vendor/wikitext-2-raw-v1" `
49
+ - Force
50
+ }
51
+
40
52
function Resolve-UnixPath {
41
53
Param ([String ] $path )
42
54
Write-Output ((Resolve-Path " $path " ).Path -replace ' \\' , ' /' )
@@ -67,7 +79,7 @@ if (!(Select-String -Path "./vendor/llama.cpp/CMakeLists.txt" -Pattern $lines[0]
67
79
Set-Content " ./vendor/llama.cpp/CMakeLists.txt"
68
80
}
69
81
70
- Remove-Item - Path " ./vendor/llama.cpp/build" - Force - Recurse
82
+ Remove-Item - Path " ./vendor/llama.cpp/build" - Force - Recurse
71
83
72
84
New-Item - Path " ./vendor/llama.cpp" - Name " build" - ItemType " directory"
73
85
Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory except this file.
2
+ *
3
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments