Skip to content

Commit

Permalink
rafactoring quant-awq.sh due to pytorch bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
suparious authored May 12, 2024
1 parent 72fca27 commit 3f14a80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions awq/quant-awq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mkdir -p ${APP_HOME}
set -e

function logger() {
echo "8===D $1" | tee -a "${SRT_DATA}/quant-awq.log"
printf "%s\n" "8===D $1" | tee -a "${SRT_DATA}/quant-awq.log"
}

function garbage_collect() {
Expand All @@ -40,7 +40,7 @@ function update_readme() {

function create_quant_repo() {
logger "Create a new repo"
(huggingface-cli repo create --organization ${QUANTER} ${MODEL}-AWQ -y)
huggingface-cli repo create --organization ${QUANTER} ${MODEL}-AWQ -y
}

function processing_notice() {
Expand All @@ -59,7 +59,7 @@ function add_quant_config() {
function add_model_card() {
logger "Add model card"
cp ${SRT_REPO}/initial-readme.txt ${SRT_DATA}/${MODEL}-AWQ/README.md
update_readme
update_readed

This comment has been minimized.

Copy link
@suparious

suparious May 12, 2024

Author Contributor

what the fuck is this?

upload "Add default model card"
}

Expand Down

0 comments on commit 3f14a80

Please sign in to comment.