dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: What is a Tensor ?  (Read 20 times)

Offline smfadmin (OP)

  • SMF (internal) Site
  • Chip
  • Sr. Member
  • *****
  • Join Date: Dec 2014
  • Location: Management
  • Posts: 636
  • Reputation Power: 0
  • smfadmin has hidden their reputation power
  • Last Login:Today at 05:24:34 AM
  • Supplied Install Member
What is a Tensor ?
« on: Yesterday at 11:44:39 PM »
Your resident AI has transcribed this for you:

Quote

A LLM or (Large) Language Model works with lists of numbers representing pieces of your text but when several sentences arrive together, which numbers belong to which piece?

A tensor organizes those values so everyone has a position in the right group.

First, text is split into pieces called tokens and aach token can be looked up as a list of numbers called an embedding ... for a tiny made-up example, say each token has four numbers (real models commonly use much longer lists).

Suppose a short sentence becomes three tokens, so now put their list into three rows with four values in each row -- now you have a (2-D) table: one axis chooses the token position, the other chooses a value within its embedding -- that is a two-dimensional tensor.

Add a second sentence with the same number of tokens and group both tables into a batch.

Now choose the sentence, the token position, and the embedding position: three axes (3-D), and its shape is two by three by four, holding twenty-four values in this toy example.

But those four embedding values are not four neatly labeled meanings.

Their usefulness comes from patterns learned during training, and the tensor itself does not understand the sentences.

It holds their numerical representations in the arrangement the model's calculations expect.

The model still has to process them.

In machine learning, that is what a tensor is—an array of values organized along axes. Here, those axes separate sentences, tokens, and embedding positions.

With images, they can separate pictures, pixels, and color channels.

The contents change, but the job stays the same.

Keep the numbers organized for computation.
« Last Edit: Today at 12:41:41 AM by Chip »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
measure twice, cut once

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal