python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

Update Gemma on Dataflow example to pass max_length as arg

Open jrmccluskey opened this issue 1 year ago • 5 comments

Description

Passes the max_length parameter to Gemma's generate() call through inference_args rather than having a hard-coded option.

Checklist

jrmccluskey avatar Jun 24 '24 15:06 jrmccluskey

Got a clean run using this version of the code on a different GCP project since the test runs here have been hitting compute quotas

jrmccluskey avatar Jun 25 '24 20:06 jrmccluskey

We got this warning, although not the source of the errors:

/workspace/dataflow/gemma/custom_model_gemma.py:143: BeamDeprecationWarning: WriteStringsToPubSub is deprecated since 2.7.0. Use WriteToPubSub instead.

davidcavazos avatar Oct 08 '24 19:10 davidcavazos

======================== 1 failed in 3607.33s (1:00:07) ========================
nox > Command pytest --junitxml=sponge_log.xml failed with exit code 1
nox > Session py-3.11 failed.
make: *** [Makefile:40: test] Error 1


err: signal: killed

Looks like tests failed due to timeout.

davidcavazos avatar Dec 02 '24 22:12 davidcavazos

This might require updating to the latest branch, secrets have changed and it might be using an older image version.

davidcavazos avatar Dec 02 '24 22:12 davidcavazos

@jrmccluskey per the earlier comment, this PR will need rebasing before test can run

glasnt avatar Mar 05 '25 03:03 glasnt