Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edknv committed Jan 13, 2024
1 parent f7fea7d commit e1d697d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions crossfit/op/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import inspect
import uuid

import dask.dataframe as dd
from dask.distributed import get_worker, wait
Expand Down Expand Up @@ -81,7 +80,7 @@ def __call__(self, data, *args, partition_info=None, **kwargs):
self.teardown()
return output

#self.setup()
# self.setup()

if self.pre is not None:
params = inspect.signature(self.pre).parameters
Expand Down
2 changes: 1 addition & 1 deletion crossfit/op/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def tokenize_strings(self, sentences, max_length=None):
worker = self.get_worker()

if hasattr(worker, "tokenizer"):
tokernizer = worker.tokenizer
tokenizer = worker.tokenizer
else:
tokenizer = GPUTokenizer.from_pretrained(self.model)
worker.tokenizer = tokenizer
Expand Down
20 changes: 10 additions & 10 deletions docker/ci/build_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ IMAGE_TAG=23.10

docker build -t ${IMAGE_NAME}:${IMAGE_TAG} -f docker/ci/Dockerfile .

#if [ -z ${NVCR_PAT+x} ]
#then
# echo "This script assumes your nvcr personal access token is stored in "
# echo "a variable named NVCR_PAT, e.g., export NVCR_PAT=YOUR_TOKEN. "
# exit 1
#fi
#
#echo ${NVCR_PAT} | docker login nvcr.io -u '$oauthtoken' --password-stdin
#
#docker push ${IMAGE_NAME}:${IMAGE_TAG}
if [ -z ${NVCR_PAT+x} ]
then
echo "This script assumes your nvcr personal access token is stored in "
echo "a variable named NVCR_PAT, e.g., export NVCR_PAT=YOUR_TOKEN. "
exit 1
fi

echo ${NVCR_PAT} | docker login nvcr.io -u '$oauthtoken' --password-stdin

docker push ${IMAGE_NAME}:${IMAGE_TAG}

0 comments on commit e1d697d

Please sign in to comment.