Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does InstructLab support offline training? #426

Open
orgC opened this issue Dec 24, 2024 · 0 comments
Open

Does InstructLab support offline training? #426

orgC opened this issue Dec 24, 2024 · 0 comments

Comments

@orgC
Copy link

orgC commented Dec 24, 2024

I am trying to train a model in an offline environment and encountered an issue. Below are the steps I followed:

I executed the following command:

ilab model train --local --data-path ~/.local/share/instructlab/datasets/knowledge_train_msgs_2024-12-24T17_57_37.jsonl

However, I received the following error message:

...
  File "/root/instructlab/venv/lib/python3.11/site-packages/transformers/configuration_utils.py", line 574, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/instructlab/venv/lib/python3.11/site-packages/transformers/configuration_utils.py", line 633, in _get_config_dict
    resolved_config_file = cached_file(
                           ^^^^^^^^^^^^
  File "/root/instructlab/venv/lib/python3.11/site-packages/transformers/utils/hub.py", line 446, in cached_file
    raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like instructlab/granite-7b-lab is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant