Tim Martin

Results 10 issues of Tim Martin

I've set up an environment successfully but as far as I can tell the data in the database doesn't persist if the environment is taken down. This means that if...

With the following code: ``` from django.db import models class ExtraFileField(models.FileField): pass class Foo(models.Model): document = ExtraFileField(verbose_name='whatever') ``` I get warnings: > test.py:7:15: E1123: Unexpected keyword argument 'verbose_name' in constructor...

The reverse function moved in Django 1.10, so this change works with all currently-supported versions of Django (currently 1.11 and 2.1 onwards). Obviously it breaks compatibility with 1.9.

There's an oddity in the `RestrictedClass` type that will become a problem in Python 3. The constructor passes its arguments on to the base class constructor: ```python class RestrictedClass(base_type): def...

**Describe the bug** When training T5 with `evaluate_during_training = True`, it throws an exception during training: Traceback (most recent call last): File "/home/timm/dev/simpletransformers/t5_minimal_start.py", line 43, in model.train_model(train_df, eval_data=eval_df) File "/home/timm/dev/simpletransformers/simpletransformers/t5/t5_model.py",...

stale

This needs to be set in the args so that it is correctly stored when they are saved to disk, otherwise the model can't be successfully loaded later. This fixes...

stale

**Describe the bug** I trained a GPT-2 model from scratch using `LanguageModelingModel`. This was saved to disk. I then started a new process and tried to load it, and it...

stale

I generated some code, and it fails the Typescript build with Property 'default' does not exist on type 'SuperAgentStatic' The code in question is const agent = this.configureAgentHandler ? this.configureAgentHandler(request.default)...

bug

I'm testing some Django code, and I'd like to use the Django test client. This is available in Pytest via `pytest-django` providing [a client fixture](https://pytest-django.readthedocs.io/en/latest/helpers.html#client-django-test-client). It's meant to be used...