wandb에서 결과를 저장할 때 환경 변수WANDB_API_KEY에 WANDB의 API KEY를 사전 등록하십시오. CUDA_VISIBLE_DEVICES=0 poetry run python scripts/evaluate_llm.py -cn config.yaml \ model.pretrained_model_name_or_path=/path/to/model_dir \ tokenizer.pretrai...
Lightning TensorFlow Keras Scikit-LEARN XGBoost importopenai,weave weave.init("weave-intro")@weave.opdefcorrect_grammar(user_input):client=openai.OpenAI()response=client.chat.completions.create(model="o1-mini",messages=[{"role":"user","content":"Correct the grammar:\n\n"+user_input,}],)retur...