Skip to content
Snippets Groups Projects
Commit eeba2c13 authored by Stephen D's avatar Stephen D
Browse files

another commit

parent 0a1bbfad
No related branches found
No related tags found
No related merge requests found
/DeepSeek-R1-Distill-Qwen-32B-Q5_K_L.gguf
/DeepSeek-*.gguf
/log/*
!/log/.keep
prompt.tmp
File moved
#!/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
#!/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 = ''
......
root ::= thinking newline sentence{0,5}
thinking ::= "<think>" ([^<>]){1000,10000} "</think>"
thinking ::= "<think>" ([^<>]){3500,10000} "</think>"
sentence ::= (wordsthenchar terminate space{0, 1})
wordsthenchar ::= (word (space | comma space){0,1}){0,100}
space ::= " "
......
......@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment