Skip to content

Unable to fine-tune in linux #103

@Sunlightshadow

Description

@Sunlightshadow

Hi and first of all I am gradeful for publishing a Linux version of Opus-Cat ❤️.
I am using version 1.3.0.0 of Opus-Cat on Fedora 40.
I can download and use models with Opus-Cat. However, I am not able to do the fine tuning.
According to the log, there seems to be a wrong specification for the path of Marian. It tries to access /home/user/marian-dev/src/common/cli_wrapper.cpp:208, but the location does not exist.
In addition, the app cannot access a specific library although I have set the permissions.

Here is the log:

2024-08-24 21:54:58.254 +02:00 [INF] Opening OPUS-CAT MT Engine window
2024-08-24 21:54:58.313 +02:00 [INF] Starting OPUS-CAT MT Engine
2024-08-24 21:54:58.517 +02:00 [INF] Started HTTP API at http://+:8500. This API can be accessed from remote computers, if the firewall has been configured to allow it.
2024-08-24 21:55:20.888 +02:00 [INF] Fine-tuning a new model with model tag xx_ from base model opus-2021-02-22.
2024-08-24 21:56:03.039 +02:00 [INF] Starting batch translator for model eng-deu_opus-2021-02-22.
2024-08-24 21:56:03.044 +02:00 [INF] [2024-08-24 21:56:03] Error: Cannot convert values for the option: log
2024-08-24 21:56:03.044 +02:00 [INF] [2024-08-24 21:56:03] Error: Aborted from void marian::cli::CLIWrapper::updateConfig(const YAML::Node&, marian::cli::OptionPriority, const string&) in /home/user/marian-dev/src/common/cli_wrapper.cpp:208
2024-08-24 21:56:03.044 +02:00 [INF]
2024-08-24 21:56:03.044 +02:00 [INF] [CALL STACK]
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885e7a71d] + 0x20d71d
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885eb1dcf] + 0x244dcf
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885e98204] + 0x22b204
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885d76561] + 0x109561
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885d4c215] + 0xdf215
2024-08-24 21:56:03.044 +02:00 [INF] [0x7f19c5239088] + 0x2a088
2024-08-24 21:56:03.044 +02:00 [INF] [0x7f19c523914b] __libc_start_main + 0x8b
2024-08-24 21:56:03.044 +02:00 [INF] [0x555885d6f805] + 0x102805
2024-08-24 21:56:03.044 +02:00 [INF]
2024-08-24 21:56:03.105 +02:00 [INF] Batch translation process for model eng-deu_opus-2021-02-22 exited. Processing output.
2024-08-24 21:56:03.106 +02:00 [INF] python3-linux-3.8.13-x86_64/bin/python3: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

I am happy to help you test the program. Thank you very much 🙏!

Edit:

I was able to fix the python permission error. In OpusCatMtEngine.sh you have to change
LD_LIBRARY_PATH=$LD_LIBRARY_PATH./python3-linux-3.8.13-x86_64/lib/
to
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./python3-linux-3.8.13-x86_64/lib/
But the Marian-related bugs still persists:

2024-08-25 05:08:03.198 +02:00 [INF] Opening OPUS-CAT MT Engine window
2024-08-25 05:08:03.252 +02:00 [INF] Starting OPUS-CAT MT Engine
2024-08-25 05:08:03.452 +02:00 [INF] Started HTTP API at http://+:8500. This API can be accessed from remote computers, if the firewall has been configured to allow it.
2024-08-25 05:08:43.864 +02:00 [INF] Fine-tuning a new model with model tag xx from base model opus-2021-02-22.
2024-08-25 05:09:25.590 +02:00 [INF] Starting batch translator for model eng-deu_opus-2021-02-22.
2024-08-25 05:09:25.602 +02:00 [INF] [2024-08-25 05:09:25] Error: Cannot convert values for the option: log
2024-08-25 05:09:25.602 +02:00 [INF] [2024-08-25 05:09:25] Error: Aborted from void marian::cli::CLIWrapper::updateConfig(const YAML::Node&, marian::cli::OptionPriority, const string&) in /home/user/marian-dev/src/common/cli_wrapper.cpp:208
2024-08-25 05:09:25.602 +02:00 [INF]
2024-08-25 05:09:25.602 +02:00 [INF] [CALL STACK]
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e7924371d] + 0x20d71d
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e7927adcf] + 0x244dcf
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e79261204] + 0x22b204
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e7913f561] + 0x109561
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e79115215] + 0xdf215
2024-08-25 05:09:25.602 +02:00 [INF] [0x7f7a22727088] + 0x2a088
2024-08-25 05:09:25.602 +02:00 [INF] [0x7f7a2272714b] __libc_start_main + 0x8b
2024-08-25 05:09:25.602 +02:00 [INF] [0x563e79138805] + 0x102805
2024-08-25 05:09:25.602 +02:00 [INF]
2024-08-25 05:09:25.670 +02:00 [INF] Batch translation process for model eng-deu_opus-2021-02-22 exited. Processing output.
2024-08-25 05:09:25.783 +02:00 [INF] Traceback (most recent call last):
2024-08-25 05:09:25.783 +02:00 [INF] File "./Marian/validate.py", line 54, in
2024-08-25 05:09:25.783 +02:00 [INF] system_ood_sents, system_indomain_sents = extract_lines_and_split(system_output_path,system_seg_method)
2024-08-25 05:09:25.783 +02:00 [INF] File "./Marian/validate.py", line 32, in extract_lines_and_split
2024-08-25 05:09:25.783 +02:00 [INF] with open(sent_file_path,'rt', encoding='utf-8') as sent_file:
2024-08-25 05:09:25.783 +02:00 [INF] FileNotFoundError: [Errno 2] No such file or directory: '/home/xxx/Programme/OpusCatMTEngine_v1.3.0_linux-x64/opuscat/models/eng-deu/opus-2021-02-22_xx/valid.0.txt'

Edit 2:
I am able to fine tune a model when using the "Test!Do not use verison! from the releases page, with my change from above in OpusCatMtEngine.sh! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions