Skip to content

Commit ad1ec84

Browse files
authored
remove double escaped backslash newline (#1377)
1 parent 7d2ecfb commit ad1ec84

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pgml-cms/docs/resources/benchmarks/ggml-quantized-llm-support-for-huggingface-transformers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ SELECT pgml.transform(
5858

5959
## Quantization
6060

61-
_Discrete quantization is not a new idea. It's been used by both algorithms and artists for more than a hundred years._\\
61+
_Discrete quantization is not a new idea. It's been used by both algorithms and artists for more than a hundred years._
6262

6363
Going beyond 16-bit down to 8 or 4 bits is possible, but not with hardware accelerated floating point operations. If we want hardware acceleration for smaller types, we'll need to use small integers w/ vectorized instruction sets. This is the process of _quantization_. Quantization can be applied to existing models trained with 32-bit floats, by converting the weights to smaller integer primitives that will still benefit from hardware accelerated instruction sets like Intel's [AVX](https://en.wikipedia.org/wiki/Advanced\_Vector\_Extensions). A simple way to quantize a model can be done by first finding the maximum and minimum values of the weights, then dividing the range of values into the number of buckets available in your integer type, 256 for 8-bit, 16 for 4-bit. This is called _post-training quantization_, and it's the simplest way to quantize a model.
6464

pgml-cms/docs/resources/benchmarks/making-postgres-30-percent-faster-in-production.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This is not only a performance benefit, but also a usability improvement for cli
2020

2121
## Benchmark
2222

23-
\\
23+
2424

2525
<figure><img src="../../.gitbook/assets/pgcat_prepared_throughput.svg" alt=""><figcaption></figcaption></figure>
2626

pgml-cms/docs/resources/benchmarks/mindsdb-vs-postgresml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Another difference is that PostgresML also supports embedding models, and closel
4444

4545
The architectural implementations for these projects is significantly different. PostgresML takes a data centric approach with Postgres as the provider for both storage _and_ compute. To provide horizontal scalability for inference, the PostgresML team has also created [PgCat](https://github.com/postgresml/pgcat) to distribute workloads across many Postgres databases. On the other hand, MindsDB takes a service oriented approach that connects to various databases over the network.
4646

47-
\\
47+
4848

4949
<figure><img src="../../.gitbook/assets/mindsdb-pgml-architecture.png" alt=""><figcaption></figcaption></figure>
5050

@@ -59,7 +59,7 @@ The architectural implementations for these projects is significantly different.
5959
| On Premise |||
6060
| Web UI |||
6161

62-
\\
62+
6363

6464
The difference in architecture leads to different tradeoffs and challenges. There are already hundreds of ways to get data into and out of a Postgres database, from just about every other service, language and platform that makes PostgresML highly compatible with other application workflows. On the other hand, the MindsDB Python service accepts connections from specifically supported clients like `psql` and provides a pseudo-SQL interface to the functionality. The service will parse incoming MindsDB commands that look similar to SQL (but are not), for tasks like configuring database connections, or doing actual machine learning. These commands typically have what looks like a sub-select, that will actually fetch data over the wire from configured databases for Machine Learning training and inference.
6565

@@ -287,7 +287,7 @@ PostgresML is the clear winner in terms of performance. It seems to me that it c
287287
| translation\_en\_to\_es | t5-base | 1573 | 1148 | 294 |
288288
| summarization | sshleifer/distilbart-cnn-12-6 | 4289 | 3450 | 479 |
289289

290-
\\
290+
291291

292292
There is a general trend, the larger and slower the model is, the more work is spent inside libtorch, the less the performance of the rest matters, but for interactive models and use cases there is a significant difference. We've tried to cover the most generous use case we could between these two. If we were to compare XGBoost or other classical algorithms, that can have sub millisecond prediction times in PostgresML, the 20ms Python service overhead of MindsDB just to parse the incoming query would be hundreds of times slower.
293293

pgml-cms/docs/use-cases/embeddings/generating-llm-embeddings-with-open-source-models-in-postgresml.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ For comparison, it would cost about $299 to use OpenAI's cheapest embedding mode
198198
| GPU | 17ms | $72 | 6 hours |
199199
| OpenAI | 300ms | $299 | millennia |
200200

201-
\\
201+
202202

203203
You can also find embedding models that outperform OpenAI's `text-embedding-ada-002` model across many different tests on the [leaderboard](https://huggingface.co/spaces/mteb/leaderboard). It's always best to do your own benchmarking with your data, models, and hardware to find the best fit for your use case.
204204

0 commit comments

Comments
 (0)