huggingface / autotrain-advanced

🤗 AutoTrain Advanced
https://huggingface.co/autotrain
Apache License 2.0
3.84k stars 472 forks source link

[BUG] ValueError: Usernamemust be specified for push to hub #613

Closed dinhvanlinh0610 closed 5 months ago

dinhvanlinh0610 commented 5 months ago

Prerequisites

Backend

Colab

Interface Used

CLI

CLI Command

!autotrain llm \ --train \ --model ${MODEL_NAME} \ --project-name ${PROJECT_NAME} \ --data-path data/ \ --text-column text \ --lr ${LEARNING_RATE} \ --batch-size ${BATCH_SIZE} \ --epochs ${NUM_EPOCHS} \ --block-size ${BLOCK_SIZE} \ --warmup-ratio ${WARMUP_RATIO} \ --lora-r ${LORA_R} \ --lora-alpha ${LORA_ALPHA} \ --lora-dropout ${LORA_DROPOUT} \ --weight-decay ${WEIGHT_DECAY} \ --gradient-accumulation ${GRADIENT_ACCUMULATION} \ --quantization ${QUANTIZATION} \ --mixed-precision ${MIXED_PRECISION} \ $( [[ "$PEFT" == "True" ]] && echo "--peft" ) \ $( [[ "$PUSH_TO_HUB" == "True" ]] && echo "--push-to-hub --token ${HF_TOKEN}" )

UI Screenshots & Parameters

No response

Error Logs

Traceback (most recent call last): File "/usr/local/bin/autotrain", line 8, in sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/autotrain/cli/autotrain.py", line 53, in main command = args.func(args) File "/usr/local/lib/python3.10/dist-packages/autotrain/cli/run_llm.py", line 12, in run_llm_command_factory return RunAutoTrainLLMCommand(args) File "/usr/local/lib/python3.10/dist-packages/autotrain/cli/run_llm.py", line 325, in init raise ValueError("Usernamemust be specified for push to hub") ValueError: Usernamemust be specified for push to hub

Additional Information

No response

dinhvanlinh0610 commented 5 months ago

add username parameter

ahmed8047762 commented 5 months ago

@abhishekkrthakur update colab notebook too, username parameter is missing in it.

abhishekkrthakur commented 5 months ago

fixed