Hi Yuan Jin,
Assuming that you are using version 2.0, you should use the "optimizeinputonly" setting, described here:
https://www.nescent.org/wg_garli/GARLI_Configuration_Settings#optimizeinputonly_.28do_not_search.2C_only_optimize_model_and_branch_lengths_on_user_trees.29Note that that option requires a NEXUS format input tree though.
It shouldn't matter whether or not it has branch lengths, and the optimized branch lengths returned by GARLI should be the same regardless. You should probably let GARLI reoptimize model parameters, as some of the models are defined slightly differently in the two programs.
If your goal in doing this reoptimization is to get likelihood scores, keep in mind that scores are not necessarily comparable between programs, so only compare likelihood values for different tree obtained by optimizing branchlengths and model parameters in a single program.
Let me know if you have other questions.
Best,
Derrick