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

Commit18be006

Browse files
committed
move embedding tests into their own file
1 parent455861e commit18be006

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

‎pgml-extension/examples/embedding.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
\timingon
2+
3+
SELECTpgml.embed('Alibaba-NLP/gte-base-en-v1.5','hi mom','{"trust_remote_code": true}');
4+
SELECTpgml.embed('Alibaba-NLP/gte-base-en-v1.5','hi mom','{"device": "cuda", "trust_remote_code": true}');
5+
SELECTpgml.embed('Alibaba-NLP/gte-base-en-v1.5','hi mom','{"device": "cpu", "trust_remote_code": true}');
6+
SELECTpgml.embed('hkunlp/instructor-xl','hi mom','{"instruction": "Encode it with love"}');
7+
SELECTpgml.embed('mixedbread-ai/mxbai-embed-large-v1','test','{"prompt": "test prompt: "}');

‎pgml-extension/examples/image_classification.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'xgboost', hyperpara
6666

6767
-- runtimes
6868
SELECT*FROMpgml.train('Handwritten Digits', algorithm=>'linear', runtime=>'python');
69-
SELECT*FROMpgml.train('Handwritten Digits', algorithm=>'linear', runtime=>'rust');
69+
--SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'linear', runtime => 'rust');
7070

7171
--SELECT * FROM pgml.train('Handwritten Digits', algorithm => 'xgboost', runtime => 'python', hyperparams => '{"n_estimators": 10}'); -- too slow
7272
SELECT*FROMpgml.train('Handwritten Digits', algorithm=>'xgboost', runtime=>'rust', hyperparams=>'{"n_estimators": 10}');

‎pgml-extension/examples/transformers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SELECT pgml.transform_stream(
1818
}'::JSONB,
1919
input=>'AI is going to',
2020
args=>'{
21-
"max_new_tokens": 100
21+
"max_new_tokens": 100,
2222
}'::JSONB
2323
);
2424
-- BitsAndBytes support

‎pgml-extension/tests/test.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ SELECT pgml.load_dataset('wine');
3131
\i examples/vectors.sql
3232
\i examples/chunking.sql
3333
\i examples/preprocessing.sql
34+
\i examples/embedding.sql
3435
-- transformers are generally too slow to run in the test suite
3536
--\i examples/transformers.sql

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp