Spaces:
Sleeping
Sleeping
Commit ·
8c67d01
1
Parent(s): 46f3343
update
Browse files
examples/tutorials/by_deepspeed/step_2_train_model.py
CHANGED
|
@@ -63,6 +63,8 @@ def get_args():
|
|
| 63 |
def main():
|
| 64 |
args = get_args()
|
| 65 |
|
|
|
|
|
|
|
| 66 |
model = AutoModelForCausalLM.from_pretrained(
|
| 67 |
pretrained_model_name_or_path=args.model_name,
|
| 68 |
quantization_config=None,
|
|
|
|
| 63 |
def main():
|
| 64 |
args = get_args()
|
| 65 |
|
| 66 |
+
os.environ["MODELSCOPE_CACHE"] = args.model_cache_dir
|
| 67 |
+
|
| 68 |
model = AutoModelForCausalLM.from_pretrained(
|
| 69 |
pretrained_model_name_or_path=args.model_name,
|
| 70 |
quantization_config=None,
|