gghfez commited on
Commit
0988de6
·
verified ·
1 Parent(s): d1a110b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -3,6 +3,12 @@ base_model:
3
  - rednote-hilab/dots.llm1.inst
4
  ---
5
 
6
- This was created before the tokenizer fix
7
 
8
- https://huggingface.co/rednote-hilab/dots.llm1.inst/discussions/4#6846cb140806a4073408ae0d
 
 
 
 
 
 
 
3
  - rednote-hilab/dots.llm1.inst
4
  ---
5
 
6
+ This was created before the [tokenizer fix](https://huggingface.co/rednote-hilab/dots.llm1.inst/discussions/4#6846cb140806a4073408ae0d)
7
 
8
+ Use this following cli args to override the chat_template and special tokens:
9
+
10
+ ```
11
+ ./llama-cli -m ./dots.llm1.inst-GGUF/dots.1.instruct.q4_k.gguf-00001-of-00002.gguf --ctx-size 8192 --n-gpu-layers 64 -t 16 --temp 0.3 --chat-template "{% if messages[0]['role'] == 'system' %}<|system|>{{ messages[0]['content'] }}<|endofsystem|>{% set start_idx = 1 %}{% else %}<|system|>You are a helpful assistant.<|endofsystem|>{% set start_idx = 0 %}{% endif %}{% for idx in range(start_idx, messages|length) %}{% if messages[idx]['role'] == 'user' %}<|userprompt|>{{ messages[idx]['content'] }}<|endofuserprompt|>{% elif messages[idx]['role'] == 'assistant' %}<|response|>{{ messages[idx]['content'] }}<|endofresponse|>{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] == 'user' %}<|response|>{% endif %}" --jinja --override-kv tokenizer.ggml.bos_token_id=int:-1 --override-kv tokenizer.ggml.eos_token_id=int:151645 --override-kv tokenizer.ggml.pad_token_id=int:151645 --override-kv tokenizer.ggml.eot_token_id=int:151649 --override-kv tokenizer.ggml.eog_token_id=int:151649
12
+ ```
13
+
14
+ Thanks @shigureui for posting it [here](https://huggingface.co/gghfez/dots.llm1.inst-GGUF/discussions/1)