-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb2b4e4
commit d044d4f
Showing
4 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# The temperature parameter controls the randomness of the model's output. Lower values make the output more deterministic. | ||
temperature = 0.1 | ||
temperature = 0.1 | ||
|
||
# The maximum number of new tokens that the model can generate. | ||
max_tokens = 1024 | ||
max_tokens = 1024 | ||
|
||
# The start separator for the generated code. | ||
start_sep = ``` | ||
start_sep = ``` | ||
|
||
# The end separator for the generated code. | ||
end_sep = ``` | ||
end_sep = ``` | ||
|
||
# If True, the first line of the generated text will be skipped. | ||
skip_first_line = False | ||
skip_first_line = False | ||
|
||
# The model used for generating the code. | ||
HF_MODEL = 'gpt-3.5-turbo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@echo off | ||
set /p config_name="Enter the config file name: " | ||
set /p start_sep="Enter the start separator: " | ||
set /p end_sep="Enter the end separator: " | ||
set /p skip_first_line="Enter skip_first_line (True/False): " | ||
set /p model_name="Enter the model name: " | ||
|
||
if "%model_name%"=="" ( | ||
echo Error: Model name is required. | ||
exit /b | ||
) | ||
|
||
( | ||
echo # The temperature parameter controls the randomness of the model's output. Lower values make the output more deterministic. | ||
echo temperature = 0.1 | ||
echo # The maximum number of new tokens that the model can generate. | ||
echo max_tokens = 1024 | ||
echo # The start separator for the generated code. | ||
echo start_sep = %start_sep% | ||
echo # The end separator for the generated code. | ||
echo end_sep = %end_sep% | ||
echo # If True, the first line of the generated text will be skipped. | ||
echo skip_first_line = %skip_first_line% | ||
echo # The model used for generating the code. | ||
echo HF_MODEL = '%model_name%' | ||
) > configs\%config_name%.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
read -p "Enter the config file name: " config_name | ||
read -p "Enter the start separator: " start_sep | ||
read -p "Enter the end separator: " end_sep | ||
read -p "Enter skip_first_line (True/False): " skip_first_line | ||
read -p "Enter the model name: " model_name | ||
|
||
if [ -z "$model_name" ]; then | ||
echo "Error: Model name is required." | ||
exit 1 | ||
fi | ||
|
||
cat > configs/"$config_name".config << EOF | ||
# The temperature parameter controls the randomness of the model's output. Lower values make the output more deterministic. | ||
temperature = 0.1 | ||
# The maximum number of new tokens that the model can generate. | ||
max_tokens = 1024 | ||
# The start separator for the generated code. | ||
start_sep = $start_sep | ||
# The end separator for the generated code. | ||
end_sep = $end_sep | ||
# If True, the first line of the generated text will be skipped. | ||
skip_first_line = $skip_first_line | ||
# The model used for generating the code. | ||
HF_MODEL = $model_name | ||
EOF |