Skip to main content

Import a model to h2oGPT

Once the model has been fine-tuned using H2O LLM Studio, you can then use h2oGPT to query, summarize, and chat with your model.

The most common method to get the model from H2O LLM Studio over to h2oGPT, is to import it into h2oGPT via HuggingFace. However, if your data is sensitive, you can also choose to download the model locally to your machine, and then import it directly into h2oGPT.

You can use any of the following methods:

  • Publish the model to HuggingFace and import the model from HuggingFace
  • Download the model and import it to h2oGPT by specifying the local folder path
  • Download the model and upload it to h2oGPT using the file upload option on the UI
  • Pull a model from a Github repository or a resolved web link

Steps

  1. Publish the model to HuggingFace or download the model locally.

  2. If you opt to download the model, make sure you extract the downloaded .zip file.

  3. Use the following command to import it into h2oGPT.

    python generate.py --base_model=[link_or_path_to_folder]
    Examples
    python generate.py --base_model=HuggingFaceH4/zephyr-7b-beta
info

For more information, see the h2oGPT documentation.


Feedback