# Sample Keras/tensorflow colab broken

**URL:** <https://community.wandb.ai/t/sample-keras-tensorflow-colab-broken/7494>\
**Category:** W&B Help\
**Created:** [August 14, 2024, 7:11pm UTC](https://community.wandb.ai/t/sample-keras-tensorflow-colab-broken/7494 "2024-08-14T19:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolie-gabb](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jolie-gabb](https://community.wandb.ai/u/jolie-gabb)\
**Post date:** [August 14, 2024, 7:11pm UTC](https://community.wandb.ai/t/sample-keras-tensorflow-colab-broken/7494/1 "2024-08-14T19:11:40Z")

</div>

First, the import didn’t work  
from wandb.keras import WandbMetricsLogger, WandbModelCheckpoint

Changed it to:  
from wandb.integration.keras import WandbMetricsLogger, WandbModelCheckpoint

Then:

Tracking run with wandb version 0.17.6

TypeError Traceback (most recent call last)

in \<cell line: 9\>() 51 wandb\_callbacks = [52 WandbMetricsLogger(), —\> 53 WandbModelCheckpoint(filepath=“my\_model\_{epoch:02d}”), 54] 55

[/usr/local/lib/python3.10/dist-packages/wandb/integration/keras/callbacks/model\_checkpoint.py](https://localhost:8080/#) in **init** (self, filepath, monitor, verbose, save\_best\_only, save\_weights\_only, mode, save\_freq, options, initial\_value\_threshold, \*\*kwargs) 92 \*\*kwargs: Any, 93 ) → None: —\> 94 super(). **init** ( 95 filepath=filepath, 96 monitor=monitor,

TypeError: ModelCheckpoint. **init** () got an unexpected keyword argument ‘options’

I’m getting a similar error locally with ubuntu 20.04.

---

<div class="post-metadata">

**Author:** ![paulo-sabile](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@paulo-sabile](https://community.wandb.ai/u/paulo-sabile)\
**Post date:** [August 19, 2024, 8:53am UTC](https://community.wandb.ai/t/sample-keras-tensorflow-colab-broken/7494/2 "2024-08-19T08:53:33Z")

</div>

Hi @jolie-gabb  
Good day and thank you for reaching out to us. Happy to help you on this!

May I know if the code samples you are using here are the examples provided on our docs page?

Could you please share us the URL for the code snippets so I can take a look and review?

Thanks,  
Paulo

---

<div class="post-metadata">

**Author:** ![paulo-sabile](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@paulo-sabile](https://community.wandb.ai/u/paulo-sabile)\
**Post date:** [August 28, 2024, 8:59am UTC](https://community.wandb.ai/t/sample-keras-tensorflow-colab-broken/7494/3 "2024-08-28T08:59:02Z")

</div>

Hi @jolie-gabb , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!
