h2oGPT is an Apache V2 open-source project that allows you to query and summarize your documents or just chat with local private GPT LLMs.
Prerequisites
- Akash Account: Ensure you have an active Akash wallet with AKT tokens for deployment costs.
- Akash CLI: Installed and configured on your system.
- Dockerized h2oGPT: h2oGPT container image available (e.g., from Docker Hub or built locally).
- Akash Console: Access to the Akash Console.
Part 1: Create a Docker Image for h2oGPT
- Clone the Repository:
- Build the Docker Image: Ensure Docker is installed and running on your machine, then build the image.
- Test the Docker Image Locally (Optional): Run the Docker container to confirm that h2oGPT is working correctly.
Open your browser and navigate to http://localhost:7860
to confirm the app runs successfully.
- Push the Docker Image to a Registry: Tag and push the image to a container registry like Docker Hub or GitHub Packages.
Part 2: Create an SDL File
Below is an example SDL file to deploy h2oGPT.
Part 3: Deploy Using Akash CLI
-
Install Akash CLI: Follow the official Akash CLI setup guide.
-
Fund Your Wallet: Ensure your Akash wallet is funded with AKT for deployment fees.
-
Create and Send the Deployment:
- Save the SDL file as deploy.yaml.
- Create the deployment:
- Query for bids:
- Accept a bid:
-
Retrieve Deployment Logs: Use the following command to check the logs:
- Access h2oGPT: Find the deployment’s external IP or domain in the logs, then navigate to it in your browser.
Part 4: Deploy Using Akash Console
-
Access Akash Console: Open the Akash Console in your browser.
-
Log In:
- Import your Akash wallet or create a new one.
- Ensure your wallet is funded with AKT.
-
Create a Deployment:
- Click Create Deployment and paste the SDL file created earlier.
- Review the details and deploy.
-
Monitor Bids:
- Wait for bids from providers.
- Select a bid and finalize the deployment.
-
Access h2oGPT:
- Locate the provider’s external IP or domain.
- Open it in your browser to interact with the application.