bump(transformers): use upstream implementation
Browse files- README.md +0 -1
- config.json +1 -5
- generation_config.json +1 -1
README.md
CHANGED
@@ -40,7 +40,6 @@ tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-2-12b-chat')
|
|
40 |
model = AutoModelForCausalLM.from_pretrained(
|
41 |
'stabilityai/stablelm-2-12b-chat',
|
42 |
device_map="auto",
|
43 |
-
trust_remote_code=True,
|
44 |
)
|
45 |
|
46 |
prompt = [{'role': 'user', 'content': 'Implement snake game using pygame'}]
|
|
|
40 |
model = AutoModelForCausalLM.from_pretrained(
|
41 |
'stabilityai/stablelm-2-12b-chat',
|
42 |
device_map="auto",
|
|
|
43 |
)
|
44 |
|
45 |
prompt = [{'role': 'user', 'content': 'Implement snake game using pygame'}]
|
config.json
CHANGED
@@ -3,10 +3,6 @@
|
|
3 |
"StableLmForCausalLM"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
6 |
-
"auto_map": {
|
7 |
-
"AutoConfig": "configuration_stablelm.StableLmConfig",
|
8 |
-
"AutoModelForCausalLM": "modeling_stablelm.StableLmForCausalLM"
|
9 |
-
},
|
10 |
"bos_token_id": 100257,
|
11 |
"eos_token_id": 100257,
|
12 |
"hidden_act": "silu",
|
@@ -27,7 +23,7 @@
|
|
27 |
"rotary_scaling_factor": 1.0,
|
28 |
"tie_word_embeddings": false,
|
29 |
"torch_dtype": "bfloat16",
|
30 |
-
"transformers_version": "4.
|
31 |
"use_cache": true,
|
32 |
"use_norm_bias": false,
|
33 |
"use_parallel_residual": true,
|
|
|
3 |
"StableLmForCausalLM"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
|
|
|
|
|
|
|
|
6 |
"bos_token_id": 100257,
|
7 |
"eos_token_id": 100257,
|
8 |
"hidden_act": "silu",
|
|
|
23 |
"rotary_scaling_factor": 1.0,
|
24 |
"tie_word_embeddings": false,
|
25 |
"torch_dtype": "bfloat16",
|
26 |
+
"transformers_version": "4.40.0",
|
27 |
"use_cache": true,
|
28 |
"use_norm_bias": false,
|
29 |
"use_parallel_residual": true,
|
generation_config.json
CHANGED
@@ -3,5 +3,5 @@
|
|
3 |
"bos_token_id": 100257,
|
4 |
"eos_token_id": 100257,
|
5 |
"pad_token_id": 100257,
|
6 |
-
"transformers_version": "4.
|
7 |
}
|
|
|
3 |
"bos_token_id": 100257,
|
4 |
"eos_token_id": 100257,
|
5 |
"pad_token_id": 100257,
|
6 |
+
"transformers_version": "4.40.0"
|
7 |
}
|