Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9de4fda

Browse files
Lev Kokotovgitbook-bot
Lev Kokotov
authored andcommitted
GITBOOK-60: change request with no subject merged in GitBook
1 parente7e43d0 commit9de4fda

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎pgml-docs/docs/guides/deployment/self-hosting/building-from-source.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#Building from Source
22

3-
PostgresML is a Postgres extension written in Rust, so it can be built and installed on any systemthatsupported by PostgreSQL and the Rust compiler. If you're planning on using GPU acceleration for Large Language Models or for XGBoost / LightGBM supervised learning, we would recommend you use an operating system well supported by Nvidia drivers and Cuda. Thankfully, that list is pretty large these days, including popular distributions like Ubuntu, Debian, RHEL, Centos, Fedora and OpenSuse.
3+
PostgresML is a Postgres extension written in Rust, so it can be built and installed on any system supported by PostgreSQL and the Rust compiler. If you're planning on using GPU acceleration for Large Language Models or for XGBoost / LightGBM supervised learning, we would recommend you use an operating system well supported by Nvidia drivers and Cuda. Thankfully, that list is pretty large these days, including popular distributions like Ubuntu, Debian, RHEL, Centos, Fedora and OpenSuse.
44

55
###Dependencies
66

7-
PostgresML depends on a few system packages and libraries that should be installed separately in order to successfully compile it from source. The names of the packages vary based on the Linux distribution you're using, but in most cases you should be able to find all of themverbatimin your packagemanger repositories:
7+
PostgresML depends on a few system packages and libraries that should be installed separately. The names of the packages vary based on the Linux distribution you're using, but in most cases you should be able to find all of them in your packagemanager repositories:
88

99
```
1010
cmake
@@ -20,11 +20,11 @@ postgresql-server-dev-14
2020
lld
2121
```
2222

23-
This guide assumes that you're using PostgreSQL 14, so if your Postgres version is different, replace`14` in`postgresql-server-dev-14` with the correct version of Postgres. PostgresML supports all Postgres versions supported by`pgrx` and the PostgreSQL community (as of this writing, versions 12 through 16).
23+
This guide assumes that you're using PostgreSQL 14, so if your Postgres version is different, replace`14` in`postgresql-server-dev-14` with the correct version. PostgresML supports all Postgres versions supported by`pgrx` and the PostgreSQL community (as of this writing, versions 12 through 16).
2424

2525
###Getting the source code
2626

27-
All of our source code is open source and hostedin GitHub. You can download it with git:
27+
All of our source code is open source and hostedon GitHub. You can download it with git:
2828

2929
```bash
3030
git clone https://github.com/postgresml/postgresml&& \
@@ -36,11 +36,11 @@ The repository contains the extension, the dashboard, SDKs, and all apps we've w
3636

3737
###Installing PostgresML
3838

39-
For a typical deployment in production, you would need to compile and install the extension into your system PostgreSQL installation. PostgresML is using the`pgrx` Rust extension toolkit, so this ispretty easy andstraight forward to do.
39+
For a typical deployment in production, you would need to compile and install the extension into your system PostgreSQL installation. PostgresML is using the`pgrx` Rust extension toolkit, so this is straight forward.
4040

4141
####Install pgrx
4242

43-
`pgrx` is open source and available from crates.io. We are currently using the`0.10.0` version. It's important that your`pgrx` version matches what we're using, since there are some hard dependencies between our code andtheirs.
43+
`pgrx` is open source and available from crates.io. We are currently using the`0.10.0` version. It's important that your`pgrx` version matches what we're using, since there are some hard dependencies between our code and`pgrx`.
4444

4545
To install`pgrx`, simply run:
4646

@@ -63,9 +63,9 @@ cd pgml-extension && \
6363
cargo pgrx package
6464
```
6565

66-
This will produce a number of artifacts in`target/release/pg14-pgml` which you can then copy to their respective folders in`/usr` using`sudo cp`. At the timeof thiswriting,`pgrx`is working on a command that does this automatically, but ithas not been released yet.
66+
This will produce a number of artifacts in`target/release/pg14-pgml` which you can then copy to their respective folders in`/usr` using`sudo cp`. At the time writing,`pgrx`was working on a command that does this automatically, but itwas not been released yet.
6767

68-
Once the files are copiedto their respective folders in`/usr`, you need to make surethe`pgml` extension is loaded in`shared_preload_libraries`. We use shared memory to control model versioning and other cool things that make PostgresML "just work". In`/etc/postgresql/14/main/postgresql.conf`, change or add the following line:
68+
Once the files are copiedinto their respective folders in`/usr`, you need to make surethat the`pgml` extension is loaded in`shared_preload_libraries`. We use shared memory to control model versioning and other cool things that make PostgresML "just work". In`/etc/postgresql/14/main/postgresql.conf`, change or add the following line:
6969

7070
```
7171
shared_preload_libraries = 'pgml'
@@ -79,7 +79,7 @@ sudo service postgresql restart
7979

8080
####Validate the installation
8181

82-
To make sure PostgresML is installed, you can create the extension in a database of your choice:
82+
To make sure PostgresML is installed correctly, you can create the extension in a database of your choice:
8383

8484
```
8585
postgresml=# CREATE EXTENSION pgml;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp