Earlier quoted context omitted.
People need to realize something… The model weights in eg TensorFlow are the source code . It is not a von-Neumann architecture but a gigabyte of model weights is the executable part, no less than a gigabyte of imperative code. Now, the training of the model is akin to the process of writing the code. In classical imperative languages that code may be such spaghetti code that each part would be intertwined with 40 ot…
That doesn't work for me. The model weights aren't source code. They are the binary result of compiling that source code. The source code is the combination of the training data and configuration of model architecture that runs against it. The model architecture could be considered the compiler. If you give me gcc and your C code I can compile the binary myself. If you give me your training data and code that impleme…
Jina AI launches open-source 8k text embedding
201–210 of 217 posts
Re: Jina AI launches open-source 8k text embedding
#202Earlier quoted context omitted.
That doesn't work for me. The model weights aren't source code. They are the binary result of compiling that source code. The source code is the combination of the training data and configuration of model architecture that runs against it. The model architecture could be considered the compiler. If you give me gcc and your C code I can compile the binary myself. If you give me your training data and code that impleme…
No, you would need to spend “eye watering amounts of compute” to do it, similar to hiring a lot of developers to produce the code. The compiling of the code to an executable format is a tiny part of that cost.
A very slow, very expensive compiler - but it's still taking the source code (the training material and model architecture) and compiling that into a binary executable (the model).
Maybe it helps to think about this at a much smaller scale. There are plenty of interesting machine learning models which can be trained on a laptop in a few seconds (or a few minutes). That process feels very much like a compiler - takes less time to compile than a lot of large C++ projects.
Running on a GPU cluster for a month is the exact same process, just scaled up.
Huge projects like Microsoft Windows take hours to compile and that process often runs on expensive clusters, but it's still considered compilation.
Re: Jina AI launches open-source 8k text embedding
#203Earlier quoted context omitted.
> The 8k context window is new Hasn’t Claude had this for many months (before they bumped to 100k)? Edit: ah, you mean new for OSS maybe?
Claude is a large language model, which is a different thing from an embedding model.
This leaderboard doesn't compare these custom tailored embedding models vs the obvious thing of average pooling layered with any traditional LLM, which is easily implemented using sentence transformers.
Re: Jina AI launches open-source 8k text embedding
#204Earlier quoted context omitted.
No, you would need to spend “eye watering amounts of compute” to do it, similar to hiring a lot of developers to produce the code. The compiling of the code to an executable format is a tiny part of that cost.
I still think of millions of dollars of GPU spend crunching away for a month as a compiler. A very slow, very expensive compiler - but it's still taking the source code (the training material and model architecture) and compiling that into a binary executable (the model). Maybe it helps to think about this at a much smaller scale. There are plenty of interesting machine learning models which can be trained on a lapto…
https://time.com/6247678/openai-chatgpt-kenya-workers/
And billion-dollar companies made their money off it:
https://www.forbes.com/sites/kenrickcai/2023/04/11/how-alexa...
That’s the dirty secret of why ChatGPT 4 is better. But they’ll tell you it has to do with chaining ChatGPT 3’s together, more fine tuning etc. They go to these poor countries and recruit people to work on training the AI.
Not to mention all the uncompensated work of humans around the world who put their content up on the Web.
Re: Jina AI launches open-source 8k text embedding
#205Earlier quoted context omitted.
The quake engine is still open source even though it doesn't come with the quake game assets, no? It seems unreasonable to require the training data just to be called open source, given it has similar copyright challenges as game assets. Of course, this wouldn't make the model reproducible. But that's different from open source.
It's a bit different - here most of the value lies in the weights. A better analogy would be some graphics card drivers which ship a massive proprietary GPU firmware blob, and a small(ish) kernel shim to talk with said blob.
Sometimes though the software alone can be near useless without additional assets that aren't necessarily covered by the code license.
Like Quake, having the engine without the assets is useless if what you wanted was to play Quake the game. Neural nets are another prime example, as you mention. Simulators that rely on measured material property databases for usable results also fall into this category, and so on.
So perhaps what we need is new open source licenses that includes the assets needed for the user to be able to reasonably use the program as a whole.
Re: Jina AI launches open-source 8k text embedding
#206Just quantized the models for onnx usage in e.g. transformers.js and got 4x reduced file size: - 𝟐𝟖.𝟓 𝐌𝐁 jina-embeddings-v2-small-en ( https://huggingface.co/do-me/jina-embeddings-v2-small-en ) - 𝟏𝟎𝟗 𝐌𝐁 jina-embeddings-v2-base-en ( https://huggingface.co/do-me/jina-embeddings-v2-base-en ) However, I noted, that the base model is performing quite poorly on small text chunks (a few words) while the small vers…
Re: Jina AI launches open-source 8k text embedding
#207Earlier quoted context omitted.
Stability has a Japanese port which is getting lots of work https://twitter.com/StabilityAI_JP/status/171699857824440759...
This is not an embedding model though. Yes you can always extract some embeddings from somewhere, but for most LLMs those won't perform well for retrieval (which makes sense as it's not what the models are optimizing for)
Re: Jina AI launches open-source 8k text embedding
#208Earlier quoted context omitted.
That's a property of Word2Vec specifically due to how it's trained (a shallow network where most of the "logic" would be contained within the embeddings themselves). Using it for embeddings generated from LLMs or Embedding layers will not give as fun results; in practice the only thing you can do is average or cluster them.
> That's a property of Word2Vec specifically due to how it's trained (a shallow network where most of the "logic" would be contained within the embeddings themselves). Is it though? I thought the LLM-based embeddings are even more fun for this, as you have many more interesting directions to move in. I.e. not just: emb("king") - emb("man") + emb("woman") = emb("queen") But also e.g.: emb( ) + a v(sad) + b v(short) -…
Re: Jina AI launches open-source 8k text embedding
#209Just quantized the models for onnx usage in e.g. transformers.js and got 4x reduced file size: - 𝟐𝟖.𝟓 𝐌𝐁 jina-embeddings-v2-small-en ( https://huggingface.co/do-me/jina-embeddings-v2-small-en ) - 𝟏𝟎𝟗 𝐌𝐁 jina-embeddings-v2-base-en ( https://huggingface.co/do-me/jina-embeddings-v2-base-en ) However, I noted, that the base model is performing quite poorly on small text chunks (a few words) while the small vers…
Why quantize something that is already very small (270mb)?
Re: Jina AI launches open-source 8k text embedding
#210One thing that is missing in comparison: OpenAI's model is multilingual. And not only it supports and embeds a variety of languages, it also computes the same coordinates for the same semantics in different languages. I.e. if you embed "russia is a terrorist state" and "россия - страна-террорист", both of these embeddings will have almost the same coordinates.