Skip to content

Commit 460cfd5

Browse files
Moloejoegitbook-bot
authored andcommitted
GITBOOK-80: change request with no subject merged in GitBook
1 parent 17f69d3 commit 460cfd5

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

pgml-docs/docs/guides/developer-docs/contributing.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,25 @@ CREATE EXTENSION pgml;
114114

115115
That's it, PostgresML is ready. You can validate the installation by running:
116116

117-
\=== "SQL"
118117

118+
119+
{% tabs %}
120+
{% tab title="SQL" %}
119121
```sql
120122
SELECT pgml.version();
121123
```
124+
{% endtab %}
122125

123-
\=== "Output"
124-
125-
```
126+
{% tab title="Output" %}
127+
```sql
126128
postgres=# select pgml.version();
127129
version
128130
-------------------
129131
2.7.4
130132
(1 row)
131133
```
132-
133-
\===
134+
{% endtab %}
135+
{% endtabs %}
134136

135137
Basic extension usage:
136138

pgml-docs/docs/guides/developer-docs/installation.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ This will compile all the necessary packages, including Rust bindings to XGBoost
5656

5757
PostgresML uses Python packages to provide support for Hugging Face LLMs and Scikit-learn algorithms and models. To make this work on your system, you have two options: install those packages into a virtual environment (strongly recommended), or install them globally.
5858

59-
\=== "Virtual environment"
6059

60+
61+
{% tabs %}
62+
{% tab title="Virtual environment" %}
6163
To install the necessary Python packages into a virtual environment, use the `virtualenv` tool installed previously by Homebrew:
6264

6365
```bash
@@ -66,16 +68,16 @@ source pgml-venv/bin/activate && \
6668
pip install -r requirements.txt && \
6769
pip install -r requirements-xformers.txt --no-dependencies
6870
```
71+
{% endtab %}
6972

70-
\=== "Globally"
71-
73+
{% tab title="Globally" %}
7274
Installing Python packages globally can cause issues with your system. If you wish to proceed nonetheless, you can do so:
7375

7476
```bash
7577
pip3 install -r requirements.txt
7678
```
77-
78-
\===
79+
{% endtab %}
80+
{% endtabs %}
7981

8082
### Configuration
8183

pgml-docs/docs/guides/developer-docs/quick-start-with-docker.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ If you're looking to get started with PostgresML as quickly as possible, [sign u
1010

1111
## Get Started
1212

13-
\=== "macOS"
14-
13+
{% tabs %}
14+
{% tab title="macOS" %}
1515
```bash
1616
docker run \
1717
-it \
@@ -21,9 +21,9 @@ docker run \
2121
ghcr.io/postgresml/postgresml:2.7.3 \
2222
sudo -u postgresml psql -d postgresml
2323
```
24+
{% endtab %}
2425

25-
\=== "Linux with GPUs"
26-
26+
{% tab title="Linux with GPUs" %}
2727
Make sure you have Cuda, the Cuda container toolkit, and matching graphics drivers installed. You can install everything from [Nvidia](https://developer.nvidia.com/cuda-downloads).
2828

2929
On Ubuntu, you can install everything with:
@@ -48,14 +48,14 @@ docker run \
4848
```
4949

5050
If your machine doesn't have a GPU, just omit the `--gpus all` option, and the container will start and use the CPU instead.
51+
{% endtab %}
5152

52-
\=== "Windows"
53-
53+
{% tab title="Windows" %}
5454
Install [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) and [Docker Desktop](https://www.docker.com/products/docker-desktop/). You can then use **Linux with GPUs** instructions. GPU support is included, make sure to [enable CUDA](https://learn.microsoft.com/en-us/windows/ai/directml/gpu-cuda-in-wsl).
5555

56-
\===
57-
5856
Once the container is running, setting up PostgresML is as simple as creating the extension and running a few queries to make sure everything is working correctly.
57+
{% endtab %}
58+
{% endtabs %}
5959

6060
!!! generic
6161

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy