Upload test_max_token.py with huggingface_hub
Browse files- test_max_token.py +1 -1
test_max_token.py
CHANGED
|
@@ -155,7 +155,7 @@ def main():
|
|
| 155 |
return_dict=True,
|
| 156 |
).to(model.device)
|
| 157 |
|
| 158 |
-
now_token_nums = inputs['input_ids'].shape
|
| 159 |
max_len_val.append(now_token_nums)
|
| 160 |
with open('max_token_nums.json','w') as f:
|
| 161 |
json.dump(max_len_val,f,ensure_ascii=False, indent=4)
|
|
|
|
| 155 |
return_dict=True,
|
| 156 |
).to(model.device)
|
| 157 |
|
| 158 |
+
now_token_nums = inputs['input_ids'].shape
|
| 159 |
max_len_val.append(now_token_nums)
|
| 160 |
with open('max_token_nums.json','w') as f:
|
| 161 |
json.dump(max_len_val,f,ensure_ascii=False, indent=4)
|