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)
- [QUESTION] Train UnifiedMetric/XCOMET with word level predictions. HOT 1
- Sparsemax not actually used in COMET-KIWI, XCOMET-XL/XXL HOT 4
- Invalid link reference of reference-free model in readme
- Minimizing cpu RAM vs only use GPU RAM HOT 1
- what is the precision when load_from_checkpoint?
- Runtime error when loading wmt23-cometkiwi-da-xl HOT 1
- Different scores from different COMET package versions 1.1.2 and 2.2.1 HOT 2
- Different versions of COMET code give different scores with the same model and date.
- [QUESTION] large file scoring HOT 3
- [QUESTION] Splitting big models over multiple GPUs HOT 6
- [QUESTION] Memory footprint HOT 21
- [INPUT] Text Length of Input (source, reference, and hypothesis) HOT 2
- Change the global variable logger to comet_logger HOT 1
- Training script for XCOMET HOT 1
- Safetensors Support
- [QUESTION] OOM when load XCOMET-XXL in A100 with 40G memory for prediction HOT 4
- [QUESTION] why num_layers = num_hidden_layers + 1 HOT 1
- [QUESTION] Comet kiwi architecture HOT 11
- Training data and scripts used for wmt22-cometkiwi-da HOT 3
- Add missing library stubs or py.typed marker
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.