-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Courses Deepdive Sequence Poetry have T2T version conflicts #500
Comments
Changing the versions with the below values seems to fix the error:
|
OK correction, it fixed just the local run; if you try to run Cloud ML Engine training via the command: %%bash
GPU="--train_steps=7500 c --worker_gpu=1 --hparams_set=transformer_poetry"
DATADIR=gs://${BUCKET}/poetry/data
OUTDIR=gs://${BUCKET}/poetry/model
JOBNAME=poetry_$(date -u +%y%m%d_%H%M%S)
echo $OUTDIR $REGION $JOBNAME
gsutil -m rm -rf $OUTDIR
echo "'Y'" | t2t-trainer \
--data_dir=gs://${BUCKET}/poetry/subset \
--t2t_usr_dir=./poetry/trainer \
--problem=$PROBLEM \
--model=transformer \
--output_dir=$OUTDIR \
${GPU} the same error gets thrown by to worker. |
unfortunately, project gutenberg doesn't support Python 3. |
I've fixed %%writefile poetry/setup.py
from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = [
'tensor2tensor==1.13.4',
'tensorflow==1.14',
'tensorflow-serving-api==1.14.0rc0',
'numpy==1.14.6'
]
setup(
name='poetry',
version='0.1',
author = 'Google',
author_email = '[email protected]',
install_requires=REQUIRED_PACKAGES,
packages=find_packages(),
include_package_data=True,
description='Poetry Line Problem',
requires=[]
) But I still get the following error on AI Platform:
Not sure what is it to be honest, but it may have something to do with the option I've checked with T2T and the version is hard coded there: https://github.com/tensorflow/tensor2tensor/blob/master/tensor2tensor/utils/cloud_mlengine.py Local training works fine. |
The problem is related to
courses/machine_learning/deepdive/09_sequence/courses/machine_learning/deepdive/09_sequence
, which is used at Coursera's Sequence Models for Time Series and Natural Language Processing, part of Advanced Machine Learning with TensorFlow on Google Cloud Platform. When one reaches theTrain model locally on subset of data
part the below commad:throws an error:
On the other hand, trying to update tensorflow in the top setup cells as explained in the exception, another issue arises:
Also, as you on it, it'd be good IMO to bump the notebook's version of python up to 3, currently it's 2.
The text was updated successfully, but these errors were encountered: