Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
person-do-thing-llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephen D
person-do-thing-llm
Commits
eeba2c13
Commit
eeba2c13
authored
1 month ago
by
Stephen D
Browse files
Options
Downloads
Patches
Plain Diff
another commit
parent
0a1bbfad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
download-32b.sh
+0
-0
0 additions, 0 deletions
download-32b.sh
download-70b.sh
+3
-0
3 additions, 0 deletions
download-70b.sh
frontend.rb
+10
-3
10 additions, 3 deletions
frontend.rb
grammar
+1
-1
1 addition, 1 deletion
grammar
prompt
+1
-1
1 addition, 1 deletion
prompt
with
17 additions
and
6 deletions
.gitignore
+
2
−
1
View file @
eeba2c13
/DeepSeek-
R1-Distill-Qwen-32B-Q5_K_L
.gguf
/DeepSeek-
*
.gguf
/log/*
!/log/.keep
prompt.tmp
This diff is collapsed.
Click to expand it.
prepare
.sh
→
download-32b
.sh
+
0
−
0
View file @
eeba2c13
File moved
This diff is collapsed.
Click to expand it.
download-70b.sh
0 → 100644
+
3
−
0
View file @
eeba2c13
#!/usr/bin/env bash
wget https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF/resolve/main/DeepSeek-R1-Distill-Llama-70B-Q5_K_M.gguf?download
=
true
-O
DeepSeek-R1-Distill-Llama-70B-Q5_K_M.gguf
This diff is collapsed.
Click to expand it.
frontend.rb
+
10
−
3
View file @
eeba2c13
#!/usr/bin/env
cmd
=
'llama-cli -m /DeepSeek-R1-Distill-Qwen-32B-Q6_K_L.gguf -ngl 15000 -cnv --grammar-file grammar -f prompt --repeat-penalty 1.1 --repeat-last-n 20 -c 32768 --no-display-prompt'
#!/usr/bin/env ruby
require
'open3'
require
'date'
word
=
"beach"
# TODO randomize
prompt
=
File
.
open
(
'prompt'
)
{
|
f
|
f
.
read
.
gsub
(
'{WORD}'
,
word
)
}
File
.
open
(
'prompt.tmp'
,
'w'
)
{
|
f
|
f
.
write
(
prompt
)
}
# easier than escaping in bash command lol
cmd
=
%{llama-cli -m DeepSeek*.gguf -ngl 15000 -cnv --grammar-file grammar -f prompt.tmp --repeat-penalty 1.1 --repeat-last-n 20 -c 32768 --no-display-prompt}
stdin
,
stdout
,
_
=
Open3
.
popen2e
(
cmd
)
file
=
File
.
open
(
"log/
#{
DateTime
.
now
.
to_s
}
.txt"
,
'w'
)
file
.
write
(
"Word:
#{
word
}
\n
"
)
Thread
.
new
do
cur_line
=
''
...
...
This diff is collapsed.
Click to expand it.
grammar
+
1
−
1
View file @
eeba2c13
root ::= thinking newline sentence{0,5}
thinking ::= "<think>" ([^<>]){
10
00,10000} "</think>"
thinking ::= "<think>" ([^<>]){
35
00,10000} "</think>"
sentence ::= (wordsthenchar terminate space{0, 1})
wordsthenchar ::= (word (space | comma space){0,1}){0,100}
space ::= " "
...
...
This diff is collapsed.
Click to expand it.
prompt
+
1
−
1
View file @
eeba2c13
...
...
@@ -40,4 +40,4 @@ Example Game 3 (target word "bird"):
YOU MUST GIVE HINTS AS LESS THAN OR EQUAL TO 3 SHORT SENTENCES OR YOU WILL DIE! YOU WILL BE CUT OFF IF YOU GIVE A HINT THAT IS TOO LONG.
Your target word is "
beach
". Now describe that to the user using only words in the word bank.
Your target word is "
{WORD}
". Now describe that to the user using only words in the word bank.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment