Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiview/langchain-jupyter-tcc-example

Example notebook for using LangChain in a Jupyter Notebook, running on GPU-enabled Testcontainers Cloud workers
https://github.com/kiview/langchain-jupyter-tcc-example

Last synced: 28 days ago
JSON representation

Example notebook for using LangChain in a Jupyter Notebook, running on GPU-enabled Testcontainers Cloud workers

Awesome Lists containing this project

README

        

# Requirements

You need Docker and Python installed on your machine.
You also need to have Testcontainers Cloud installed and running and connected to a GPU-enabled zone.

# Setup

Create a virtual environment and install the requirements:

```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
# Running the examples

Start the Juputer Lab server:

```bash
jupyter lab
```

Open the notebook `gpu.ipynb` and run the cells.
You will see an Ollama Docker container being started, including GPU access.
It will be wired up using LangChain and you can interactively explore the framework and model.