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

Error loading dolly model locally #231

Closed
ethanenguyen opened this issue Sep 1, 2023 · 2 comments
Closed

Error loading dolly model locally #231

ethanenguyen opened this issue Sep 1, 2023 · 2 comments
Assignees

Comments

@ethanenguyen
Copy link

Hello,

I'm trying to load a fine tuned dolly model locally behind a firewall and deepseepd-mii keeps looking up huggingface for the model. I tried to pass the model path to model but that still didn't work. Is there an example of mii.deploy for a local model? I looked through both the example folder and issues but couldn't find a working example.

Thanks,

mii_configs = {"tensor_parallel": 1,
               "dtype": "fp16",
               "port_number": 50950,
               "meta_tensor": True,
               "skip_model_check": True,
               # "trust_remote_code": True,
               }
name = "fine-tuned"

mii.deploy(task='text-generation',
           model='databricks/dolly-v2-7b',
           model_path="/local/dolly/trained_model/fine-tuned-dolly-v2-7b/",
           deployment_name=name + "_deployment",
           mii_config=mii_configs)
@mrwyattii
Copy link
Contributor

@ethanenguyen This is not possible with the latest release of MII, but it will be once we finish/merge #218. Eventually you will be able to pass pipeline kwargs in the mii_configs like so:

mii_configs = {"pipeline_kwargs": 
                  {"model_kwargs": 
                      {"local_files_only":True}
                  }
              }

In the meantime, I've created a branch that you can use to achieve this: https://github.com/microsoft/DeepSpeed-MII/tree/mrwyattii/local-files-only

Install with pip install git+https://github.com/microsoft/DeepSpeed-MII@mrwyattii/local-files-only. Then add "local_files_only": True to your mii_configs.

@mrwyattii mrwyattii self-assigned this Sep 11, 2023
@ethanenguyen
Copy link
Author

thank you @mrwyattii . It works

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

2 participants