How do I save code?
Support:
less than a minute
wandb.init
에서 save_code=True
를 사용하면 run을 시작하는 메인 스크립트 또는 노트북이 저장됩니다. run에 대한 모든 코드를 저장하려면 Artifacts로 코드의 버전을 관리하세요. 다음 예제는 이 프로세스를 보여줍니다.
code_artifact = wandb.Artifact(type="code")
code_artifact.add_file("./train.py")
wandb.log_artifact(code_artifact)
[i18n] feedback_title
[i18n] feedback_question
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.