Comments (12)
Actually I got the installation working - used python 3.7 + torch==1.4.0. Now I'm trying to run it end to end.
from comet.
Python 3.6 and python 3.8 also gave me similar errors.
from comet.
Hey @ranjita-naik! did you installed the latest COMET version ? pip install unbabel-comet==0.1.0?
COMET was not running for windows due to FastBPE package but I removed that dependency on the latest version. I see you are having a problem with test-tube, but I dont think test-tube is a COMET dependency
from comet.
pip install unbabel-comet==0.1.0
is also failing with the same error.
from comet.
Ok ok, I'll have to create a VM and try to see why it's breaking for windows.
I'll send you some updates early next week
from comet.
That's good news! is it running well?
from comet.
No, it failed with the following error
arg_overrides=kwargs,
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\checkpoint_utils.py", line 194, in load_model_ensemble_and_task
task = tasks.setup_task(args)
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\tasks\__init__.py", line 17, in setup_task
return TASK_REGISTRY[args.task].setup_task(args, **kwargs)
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\tasks\multilingual_masked_lm.py", line 74, in setup_task
dictionary = Dictionary.load(os.path.join(paths[0], 'dict.txt'))
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 188, in load
d.add_from_file(f)
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 201, in add_from_file
raise fnfe
File "c:\program\anaconda3\envs\comet_windows_server_3_7\lib\site-packages\fairseq\data\dictionary.py", line 198, in add_from_file
with open(f, 'r', encoding='utf-8') as fd:
FileNotFoundError: [Errno 2] No such file or directory: 'C\\dict.txt'
from comet.
Ok that's a known error from fairseq: fairseq issue #865
I'll allocate some time next week to look at it. Probably you have to install fairseq locally and change the logic behind path splitting convention
from comet.
fairseq==0.10.0 doesn't have this problem but COMET depends on 0.9.0. After I fixed the path splitting logic in the locally installed version of fairseq==0.9.0, COMET ran fine. I also managed to create an exe through pyinstaller.
from comet.
@ranjita-naik what did you do to get it working? I'm also having problems getting it installed on windows.
from comet.
@lodeous the following worked for me.
conda create --name comet_windows_3_7 python=3.7
conda activate comet_windows_3_7
pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install unbabel-comet==0.1.0 torch==1.4.0
I was able to build from the source as well; had to add torch==1.4.0 to poetry.
poetry add https://download.pytorch.org/whl/cu92/torch-1.4.0%2Bcu92-cp37-cp37m-win_amd64.whl
If the above doesn't work, do share the errors, I can take a look.
from comet.
@ranjita-naik Thanks for helping out 🙏
from comet.
Related Issues (20)
- Is `wmt22-comet-da` the same as "COMET-22" & trained on MQM data? HOT 2
- Quantization HOT 2
- TypeError: comet.models.utils.Prediction is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator. HOT 5
- Not compatible with recent transformers? HOT 3
- Comet Evaluation Metric Error with Command line Utility HOT 1
- Running the code on Mac
- whar aspects of language gets considered while evaluating the tranlsation by COMET. as far as I am aware of MQM metric sare covered in it. Interested to know other terminolofy/features of language gets in COMET. HOT 1
- what aspects of language get considered while evaluating the translation by COMET. as far as I am aware of MQM metrics are covered in it. Interested in knowing other terminology/features of language gets in COMET. I am looking for metric along with COMET that can assess the translated content for cosmetic domain data. please suggest. HOT 1
- [QUESTION] Train Your Own Metric HOT 2
- Multi-gpu inference returns AttributeError HOT 7
- Mismatch between error span and offsets HOT 2
- [QUESTION] Reliability for en-th and th-en pair HOT 2
- AttributeError: 'dict' object has no attribute 'scores' HOT 2
- [QUESTION] AttributeError: An error occurred during model prediction: 'dict' object has no attribute 'scores' HOT 5
- AttributeError: 'dict' object has no attribute 'scores' when using the model 'Unbabel/wmt22-cometkiwi-da' HOT 4
- When loading huggingface Unbabel/wmt22-cometkiwi-da checkpoint, UnpicklingError
- [QUESTION] Unable to use ReLU as activation function HOT 4
- [QUESTION] Keep getting scores of '0' no matter what input used HOT 5
- HF Hub dependency conflicts with latest `tranformers` version. HOT 3
- if tgt is same with src, the score is still high HOT 2
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 comet.