CrabInHoney
commited on
Commit
•
0b8b22b
1
Parent(s):
7d47775
Update README.md
Browse files
README.md
CHANGED
@@ -54,7 +54,7 @@ Replacing ё with e.
|
|
54 |
model_json = json_file.read()
|
55 |
model = keras.models.model_from_json(model_json)
|
56 |
# Загрузка весов из safetensors
|
57 |
-
state_dict = load_file(os.path.join(model_dir, '
|
58 |
weights = [state_dict[f'weight_{i}'] for i in range(len(state_dict))]
|
59 |
model.set_weights(weights)
|
60 |
# Загрузка токенизатора
|
|
|
54 |
model_json = json_file.read()
|
55 |
model = keras.models.model_from_json(model_json)
|
56 |
# Загрузка весов из safetensors
|
57 |
+
state_dict = load_file(os.path.join(model_dir, 'tf_model.safetensors'))
|
58 |
weights = [state_dict[f'weight_{i}'] for i in range(len(state_dict))]
|
59 |
model.set_weights(weights)
|
60 |
# Загрузка токенизатора
|