Casper da Costa-Luis
Casper da Costa-Luis
Looks like 3 different feature requests: 1. "exposing the models via Seldon and Ambassador API Gateway [...] similar to the QuaroML stack [...] introduce MLEM inside the TPI in conjunction...
I think this comes down to creating a new `class HTTPResponseCallback(http.client.HTTPResponse)`: ```python class HTTPResponseCallback(http.client.HTTPResponse): def __init__(..., callback=None): self.callback = callback ... def _readall_chunked(self): ... while True: ... if callback: self.callback(len(chunk))...
Seems odd to do this. If there are multiple things to log per iteration, you dump multiple times? - Seems better to dump only on `next_step()` - Could also make...
Full context is `step` is the only thing that is required in order to resume interrupted training (notice the example above uses `get_step()`) - we don't need to log `loss`...
So it's about tidying up this sort of thing? ```python from tqdm.contrib.{slack,telegram,discord} import trange with trange(live.get_step(), epochs, unit="epoch") as pbar: for epoch in pbar: ... live.log("loss", loss) pbar.set_postfix(loss=loss) live.next_step() ```...
also related: https://github.com/iterative/example-repos-dev/issues/83#issuecomment-1128824098
use a recent `tqdm`. You probably want `tqdm>=4.61.2` at https://github.com/plkmo/NLP_Toolkit/blob/fb8371c8c0d9fc188bebef421e05a8d1b9697105/requirements.txt#L32
I always have a `.clang-format`, but to avoid contributors from having to have it installed (and also git saving/overwriting files while they're open and modified in an IDE/text editor) I...
To be explicit, I'd propose: - (repo) `.gitattributes` ```cfg [attr]cppfiles eol=lf filter=cppfmt [attr]cfiles eol=lf filter=cppfmt [attr]pyfiles eol=lf filter=pyfmt *.cpp cppfiles *.hpp cppfiles *.h cfiles *.c cfiles *.py pyfiles ``` -...
The other advantage of the above is users can easily turn off linting (e.g. if it takes too long): ```sh ~/UCL/STIR$ git config --local filter.cppfmt.clean cat ``` And of course...