mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#torch

0 Beiträge0 Beteiligte0 Beiträge heute

Hey, I'm stuck with this PyTorch problem and no one has answered on Stack Overflow yet. Need help creating a new tensor by using values from a 3D tensor as indices for a 1D tensor, efficiently and preferably without loops. Any PyTorch experts around?

stackoverflow.com/q/79389115/2

Boosts appreciated - thanks! 🙏

Stack OverflowHow to map values from a 3D tensor to a 1D tensor in PyTorch?I'm stuck with a Pytorch problem and could use some help: I've got two tensors: A 3D tensor (shape: i, j, j) with integer values from 0 to n A 1D tensor (shape: n) I need to create a new tensor t...

This is a very useful #torch function if your thinking tends to gravitate towards hypernetworks (as mine does for some reason):

pytorch.org/docs/stable/genera

It allows you to call the forward of any module, but to replace all of its parameters by a set of tensors of your own choosing.

The tensors get gradients so they can be derived from some upstream network.

pytorch.orgtorch.func.functional_call — PyTorch 2.5 documentation

Today I just want to quote smollm2:1.7b by HuggingFace:

"I don't know what to say, so I'll just say this:
Merry Christmas!"

hf_commit_hash=80befba1f034a5408e46a9aa03834e804170d7dc
prompt="Merry Christmas to you!"
seed=42
temperature=0.4
do_sample=true
num_beams=1
max length=50
top_k=50
top_p=0.1

#huggingface#llm#smollm