Comments (2)
Hi,
I'm seeing the following stack trace in the logs:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/ts/service.py", line 100, in predict
ret = self._entry_point(input_batch, self.context)
File "/home/model-server/tmp/models/7b8eea2d40534878b6e9830342ab8fb0/handler.py", line 145, in handle
input_data = _service.preprocess(data)
File "/home/model-server/tmp/models/7b8eea2d40534878b6e9830342ab8fb0/handler.py", line 88, in preprocess
input_data = self.sp.encode('[{}] [{}] '.format(ISO2M100[example['sourceLanguage']], ISO2M100[example['targetLanguage']]) + example['sourceText'], out_type=str)
TypeError: bytearray indices must be integers or slices, not str
Since it's a type error, I think this should be visible by running the tests at the bottom of the reference handler:
https://github.com/gwenzek/flores/blob/master/dynalab/handler.py
I think you should start from the above handler and try to put your model specific code inside the Handler
class.
from dynalab.
Ah, thanks for the catch. This handler looks very different from the template in the main Dynalab repo. I'll follow this one instead. Thanks for the quick response!
from dynalab.
Related Issues (20)
- Different model sizes between pretrained model and finetuned model HOT 4
- The shown average score is different with the manual calculation of mean of individual scores HOT 5
- The same model failed today, but worked before HOT 5
- Failed to submit large model HOT 2
- Large model not evaluating on the devtest set HOT 17
- Submit models with own extensions to fairseq HOT 1
- Taken down for full track issue[hurry] HOT 1
- Successfully evaluated on dev set but failed on devtest set HOT 2
- Questions about the second and final submission period
- The same model works successfully for small tracks but takendown for the full track HOT 1
- getting no model_files path specified issue HOT 2
- Test failing after step 25/25
- Could an example task.json be provided HOT 1
- `init.py` fails on Windows if `checkpoint.pt` or `handler.py` is in root path
- `KeyError` when calling `get_task_submission_limit()`
- Add BART style NLI example handler
- Link the task IO documentation from the main README if not done already
- Add BERT style NLI example handler
- tqdm is not installed with the pip install of dynalab
- submitting a different kind of model for sentiment analysis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynalab.