Skip to content

Commit

Permalink
adding SelfH guide of GenAI with Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT committed Feb 4, 2024
1 parent e5edc1b commit 3f36a82
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Z_Linux_Installations_101/Ubuntu_installations_bash
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ sudo add-apt-repository ppa:mdoyen/homebank
sudo apt-get update
sudo apt-get install homebank

#https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/

#Ghosfolio (https://hub.docker.com/r/ghostfolio/ghostfolio)

#Crypto
Expand Down
88 changes: 87 additions & 1 deletion content/docs/Linux_&_Cloud.md/selfhosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,93 @@ But you can even do it in the very same computer you are reading this.
* https://hub.docker.com/r/apache/superset


## GenAI - LLMs
## GenAI

{{< tabs items="Dockerfile,requirements,Docker-compose.yaml" defaultIndex="1" >}}

{{< tab >}}**Dockerfile**:

```Dockerfile
FROM python:3.11-slim

# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME

RUN apt-get update && apt-get install -y \
git \
build-essential

# Clone the private repository
RUN git clone https://github.com/lllyasviel/Fooocus

WORKDIR /app/Fooocus
pip install -r requirements_versions.txt

python entry_with_update.py

# RUN apt-get update && apt-get install -y \
# build-essential \
# curl \
# software-properties-common \
# git \
# && rm -rf /var/lib/apt/lists/*

# Install production dependencies.
#RUN pip install -r requirements.txt
```

{{< /tab >}}
{{< tab >}}**requirements**:

```txt
#Not needed here, provicded by repo.
```
{{< /tab >}}
{{< tab >}}**Docker-compose.yaml**:

```yml
version: '3'

services:
sd-fooocus:
image: python:3.11-slim
container_name: fooocus
command: tail -f /dev/null
volumes:
- ai_fooocus:/app
working_dir: /app # Set the working directory to /app
ports:
- "7865:7865"

volumes:
ai_fooocus:
```
{{< /tab >}}
{{< /tabs >}}
```yml
version: '3'

services:
sd-fooocus:
image: python:3.11-slim
container_name: fooocus
command: tail -f /dev/null
volumes:
- ai_fooocus:/app
working_dir: /app # Set the working directory to /app
ports:
- "7865:7865"

volumes:
ai_fooocus:
```
### LLMs
### Text-to-Image
## Productivity
Expand Down
4 changes: 2 additions & 2 deletions content/docs/Privacy/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Use them wisely and be responsible.
* DeFi Protocols Info: <https://defillama.com/top-protocols>
* Example: <https://defillama.com/yields?attribute=stablecoins>
* <https://ethereum.org/stablecoins>
* Create your own Crypto Analytics Dashboard with: <https://github.com/duneanalytics/docs>
* Also, you can see what others have created and whats trending: <https://dune.com/browse/dashboards?tags=DeFi>
* Create your own Crypto Analytics Dashboard with [Dune](https://github.com/duneanalytics/docs)
* Also, you can see [what others have created and whats trending](https://dune.com/browse/dashboards?tags=DeFi)

{{< callout type="info" >}}
How this also resonates with Linux?
Expand Down

0 comments on commit 3f36a82

Please sign in to comment.