QagentS commited on
Commit
2663e90
1 Parent(s): b0a8843

Upload 8 files

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "pip-code-to-doc-1.3b",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
 
1
  {
2
+ "_name_or_path": "/content/drive/My Drive/pip-parser_500",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a735038ad0413b2c6d59c5926c9bd18cc27c79497dcc83bd377682615beb6712
3
+ size 4986380064
tokenizer_config.json CHANGED
@@ -180,7 +180,7 @@
180
  }
181
  },
182
  "bos_token": "<|begin▁of▁sentence|>",
183
- "chat_template": "<code>{}</code><question>{}</question><doc>",
184
  "clean_up_tokenization_spaces": false,
185
  "eos_token": "<|EOT|>",
186
  "legacy": true,
 
180
  }
181
  },
182
  "bos_token": "<|begin▁of▁sentence|>",
183
+ "chat_template": "{% if not add_generation_prompt is defined %}\n{% set add_generation_prompt = false %}\n{% endif %}\n{%- set ns = namespace(found=false) -%}\n{%- for message in messages -%}\n {%- if message['role'] == 'system' -%}\n {%- set ns.found = true -%}\n {%- endif -%}\n{%- endfor -%}\n{{bos_token}}{%- if not ns.found -%}\n{{'You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer\\n'}}\n{%- endif %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n{{ message['content'] }}\n {%- else %}\n {%- if message['role'] == 'user' %}\n{{'### Instruction:\\n' + message['content'] + '\\n'}}\n {%- else %}\n{{'### Response:\\n' + message['content'] + '\\n<|EOT|>\\n'}}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{% if add_generation_prompt %}\n{{'### Response:'}}\n{% endif %}",
184
  "clean_up_tokenization_spaces": false,
185
  "eos_token": "<|EOT|>",
186
  "legacy": true,