Skip to content

Commit 76ed537

Browse files
authored
llama 3.1 support (#1586)
1 parent 2c2ff02 commit 76ed537

File tree

11 files changed

+83
-93
lines changed

11 files changed

+83
-93
lines changed

.github/workflows/ubuntu-packages-and-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
packageVersion:
7-
default: "2.9.2"
7+
default: "2.9.3"
88
jobs:
99
#
1010
# PostgresML extension.

pgml-cms/docs/open-source/pgml/developers/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ SELECT pgml.version();
127127
postgres=# select pgml.version();
128128
version
129129
-------------------
130-
2.9.2
130+
2.9.3
131131
(1 row)
132132
```
133133
{% endtab %}

pgml-cms/docs/open-source/pgml/developers/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ CREATE EXTENSION
132132
pgml_test=# SELECT pgml.version();
133133
version
134134
---------
135-
2.9.2
135+
2.9.3
136136
(1 row)
137137
```
138138

pgml-cms/docs/open-source/pgml/developers/quick-start-with-docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docker run \
1818
-v postgresml_data:/var/lib/postgresql \
1919
-p 5433:5432 \
2020
-p 8000:8000 \
21-
ghcr.io/postgresml/postgresml:2.9.2 \
21+
ghcr.io/postgresml/postgresml:2.9.3 \
2222
sudo -u postgresml psql -d postgresml
2323
```
2424
{% endtab %}
@@ -43,7 +43,7 @@ docker run \
4343
--gpus all \
4444
-p 5433:5432 \
4545
-p 8000:8000 \
46-
ghcr.io/postgresml/postgresml:2.9.2 \
46+
ghcr.io/postgresml/postgresml:2.9.3 \
4747
sudo -u postgresml psql -d postgresml
4848
```
4949

@@ -80,7 +80,7 @@ Time: 41.520 ms
8080
postgresml=# SELECT pgml.version();
8181
version
8282
---------
83-
2.9.2
83+
2.9.3
8484
(1 row)
8585
```
8686

pgml-cms/docs/open-source/pgml/developers/self-hosting/pooler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ Type "help" for help.
115115
postgresml=> SELECT pgml.version();
116116
version
117117
---------
118-
2.9.2
118+
2.9.3
119119
(1 row)
120120
```

pgml-extension/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml"
3-
version = "2.9.2"
3+
version = "2.9.3"
44
edition = "2021"
55

66
[lib]

pgml-extension/examples/transformers.sql

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ SELECT pgml.embed('Alibaba-NLP/gte-base-en-v1.5', 'hi mom', '{"device": "cpu"}')
88
SELECT pgml.embed('hkunlp/instructor-xl', 'hi mom', '{"instruction": "Encode it with love"}');
99
SELECT pgml.embed('mixedbread-ai/mxbai-embed-large-v1', 'test', '{"prompt": "test prompt: "}');
1010

11-
SELECT pgml.transform_stream(
11+
SELECT pgml.transform(
1212
task => '{
1313
"task": "text-generation",
1414
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
15-
"model_type": "mistral",
16-
"revision": "main",
17-
"device_map": "auto",
18-
"token": "hf_123"
15+
"token": "hf_123",
16+
"trust_remote_code": true
1917
}'::JSONB,
20-
input => 'AI is going to',
18+
inputs => ARRAY['AI is going to'],
2119
args => '{
2220
"max_new_tokens": 100
2321
}'::JSONB

pgml-extension/requirements.linux.txt

Lines changed: 70 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,78 @@
1-
accelerate==0.30.1
1+
accelerate==0.33.0
22
aiohttp==3.9.5
33
aiosignal==1.3.1
4-
annotated-types==0.6.0
5-
anyio==4.3.0
4+
annotated-types==0.7.0
5+
anyio==4.4.0
66
async-timeout==4.0.3
77
attrs==23.2.0
88
auto_gptq==0.7.1
9-
bitsandbytes==0.43.1
9+
bitsandbytes==0.43.2
1010
catboost==1.2.5
11-
certifi==2024.2.2
11+
certifi==2024.7.4
1212
charset-normalizer==3.3.2
1313
click==8.1.7
1414
cloudpickle==3.0.0
15-
cmake==3.29.2
15+
cmake==3.30.1
1616
colorama==0.4.6
17-
coloredlogs==15.0.1
1817
contourpy==1.2.1
1918
ctransformers==0.2.27
2019
cycler==0.12.1
21-
dataclasses-json==0.6.6
2220
datasets==2.16.1
23-
deepspeed==0.14.2
21+
deepspeed==0.14.4
2422
dill==0.3.7
2523
diskcache==5.6.3
2624
distro==1.9.0
2725
dnspython==2.6.1
2826
docstring_parser==0.16
2927
einops==0.8.0
30-
email_validator==2.1.1
28+
email_validator==2.2.0
3129
evaluate==0.4.2
32-
exceptiongroup==1.2.1
33-
fastapi==0.111.0
34-
fastapi-cli==0.0.3
35-
filelock==3.14.0
36-
fonttools==4.51.0
30+
exceptiongroup==1.2.2
31+
fastapi==0.111.1
32+
fastapi-cli==0.0.4
33+
filelock==3.15.4
34+
fonttools==4.53.1
3735
frozenlist==1.4.1
3836
fsspec==2023.10.0
39-
gekko==1.1.1
37+
gekko==1.2.1
4038
graphviz==0.20.3
4139
greenlet==3.0.3
4240
h11==0.14.0
4341
hjson==3.1.0
4442
httpcore==1.0.5
4543
httptools==0.6.1
4644
httpx==0.27.0
47-
huggingface-hub==0.23.0
48-
humanfriendly==10.0
45+
huggingface-hub==0.24.1
4946
idna==3.7
5047
interegular==0.3.3
5148
Jinja2==3.1.4
5249
joblib==1.4.2
5350
jsonpatch==1.33
54-
jsonpointer==2.4
55-
jsonschema==4.22.0
51+
jsonpointer==3.0.0
52+
jsonschema==4.23.0
5653
jsonschema-specifications==2023.12.1
5754
kiwisolver==1.4.5
58-
langchain==0.1.19
59-
langchain-community==0.0.38
60-
langchain-core==0.1.52
61-
langchain-text-splitters==0.0.1
62-
langsmith==0.1.56
55+
langchain==0.2.11
56+
langchain-core==0.2.23
57+
langchain-text-splitters==0.2.2
58+
langsmith==0.1.93
6359
lark==1.1.9
64-
lightgbm==4.3.0
65-
llvmlite==0.42.0
66-
lm-format-enforcer==0.9.8
67-
lxml==5.2.1
60+
lightgbm==4.4.0
61+
llvmlite==0.43.0
62+
lm-format-enforcer==0.10.3
63+
lxml==5.2.2
6864
markdown-it-py==3.0.0
6965
MarkupSafe==2.1.5
70-
marshmallow==3.21.2
71-
matplotlib==3.8.4
66+
matplotlib==3.9.1
7267
mdurl==0.1.2
7368
mpmath==1.3.0
7469
msgpack==1.0.8
7570
multidict==6.0.5
7671
multiprocess==0.70.15
77-
mypy-extensions==1.0.0
7872
nest-asyncio==1.6.0
7973
networkx==3.3
8074
ninja==1.11.1.1
81-
numba==0.59.1
75+
numba==0.60.0
8276
numpy==1.26.4
8377
nvidia-cublas-cu12==12.1.3.1
8478
nvidia-cuda-cupti-cu12==12.1.105
@@ -89,85 +83,84 @@ nvidia-cufft-cu12==11.0.2.54
8983
nvidia-curand-cu12==10.3.2.106
9084
nvidia-cusolver-cu12==11.4.5.107
9185
nvidia-cusparse-cu12==12.1.0.106
92-
nvidia-ml-py==12.550.52
86+
nvidia-ml-py==12.555.43
9387
nvidia-nccl-cu12==2.20.5
94-
nvidia-nvjitlink-cu12==12.4.127
88+
nvidia-nvjitlink-cu12==12.5.82
9589
nvidia-nvtx-cu12==12.1.105
96-
openai==1.28.0
97-
optimum==1.19.2
98-
orjson==3.10.3
99-
outlines==0.0.34
100-
packaging==23.2
90+
openai==1.37.0
91+
orjson==3.10.6
92+
outlines==0.0.46
93+
packaging==24.1
10194
pandas==2.2.2
102-
peft==0.10.0
103-
pillow==10.3.0
104-
plotly==5.22.0
105-
portalocker==2.8.2
95+
peft==0.11.1
96+
pillow==10.4.0
97+
plotly==5.23.0
98+
portalocker==2.10.1
10699
prometheus-fastapi-instrumentator==7.0.0
107100
prometheus_client==0.20.0
108-
protobuf==5.26.1
109-
psutil==5.9.8
101+
protobuf==5.27.2
102+
psutil==6.0.0
110103
py-cpuinfo==9.0.0
104+
pyairports==2.1.1
111105
pyarrow==11.0.0
112106
pyarrow-hotfix==0.6
113-
pydantic==2.7.1
114-
pydantic_core==2.18.2
107+
pycountry==24.6.1
108+
pydantic==2.8.2
109+
pydantic_core==2.20.1
115110
Pygments==2.18.0
116-
pynvml==11.5.0
117111
pyparsing==3.1.2
118112
python-dateutil==2.9.0.post0
119113
python-dotenv==1.0.1
120114
python-multipart==0.0.9
121115
pytz==2024.1
122116
PyYAML==6.0.1
123-
ray==2.21.0
117+
pyzmq==26.0.3
118+
ray==2.32.0
124119
referencing==0.35.1
125-
regex==2024.5.10
126-
requests==2.31.0
120+
regex==2024.5.15
121+
requests==2.32.3
127122
rich==13.7.1
128123
rouge==1.0.1
129-
rpds-py==0.18.1
124+
rpds-py==0.19.0
130125
sacrebleu==2.4.2
131126
sacremoses==0.1.1
132127
safetensors==0.4.3
133-
scikit-learn==1.4.2
134-
scipy==1.13.0
135-
sentence-transformers==2.7.0
128+
scikit-learn==1.5.1
129+
scipy==1.14.0
130+
sentence-transformers==3.0.1
136131
sentencepiece==0.2.0
137132
shellingham==1.5.4
138133
shtab==1.7.1
139134
six==1.16.0
140135
sniffio==1.3.1
141-
SQLAlchemy==2.0.30
136+
SQLAlchemy==2.0.31
142137
starlette==0.37.2
143-
sympy==1.12
138+
sympy==1.13.1
144139
tabulate==0.9.0
145-
tenacity==8.3.0
140+
tenacity==8.5.0
146141
threadpoolctl==3.5.0
147-
tiktoken==0.6.0
142+
tiktoken==0.7.0
148143
tokenizers==0.19.1
149-
torch==2.3.0
150-
torchaudio==2.3.0
151-
torchvision==0.18.0
144+
torch==2.3.1
145+
torchaudio==2.3.1
146+
torchvision==0.18.1
152147
tqdm==4.66.4
153-
transformers==4.40.2
148+
transformers==4.43.1
154149
transformers-stream-generator==0.0.5
155-
triton==2.3.0
156-
trl==0.8.6
150+
triton==2.3.1
151+
trl==0.9.6
157152
typer==0.12.3
158-
typing-inspect==0.9.0
159-
typing_extensions==4.11.0
160-
tyro==0.8.4
153+
typing_extensions==4.12.2
154+
tyro==0.8.5
161155
tzdata==2024.1
162-
ujson==5.9.0
163-
urllib3==2.2.1
164-
uvicorn==0.29.0
156+
urllib3==2.2.2
157+
uvicorn==0.30.3
165158
uvloop==0.19.0
166-
vllm==0.4.2
167-
vllm-nccl-cu12==2.18.1.0.4.0
168-
watchfiles==0.21.0
159+
vllm==0.5.3.post1
160+
vllm-flash-attn==2.5.9.post1
161+
watchfiles==0.22.0
169162
websockets==12.0
170-
xformers==0.0.26.post1
171-
xgboost==2.0.3
163+
xformers==0.0.27
164+
xgboost==2.1.0
172165
xxhash==3.4.1
173166
yarl==1.9.4

pgml-extension/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ctransformers
3030
huggingface-hub
3131
deepspeed
3232
einops
33-
optimum
3433
peft
3534
tokenizers
3635
transformers

pgml-extension/sql/pgml--2.9.2--2.9.3.sql

Whitespace-only changes.

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