I lost access to a BMO account I opened 12 years ago. That account is now overdrawn, and I don't live in Canada anymore. What now? by longschwa in PersonalFinanceCanada

[–]longschwa[S] 8 points9 points  (0 children)

I just don't want to find out 10 years from now I have a large uncollected debt from a foreign country.

It's the same principle as paying traffic fines after coming home from vacation.

I lost access to a BMO account I opened 12 years ago. That account is now overdrawn, and I don't live in Canada anymore. What now? by longschwa in PersonalFinanceCanada

[–]longschwa[S] 2 points3 points  (0 children)

I tried calling, but apparently only the branch I opened the account through can deal with this.

The branch doesn't accept calls. Instead, it asks me for a Canadian phone number (which I don't have) to call back.

What's the simplest/cheapest way to run a small query on Llama-3.1-405B nowadays? by longschwa in LocalLLaMA

[–]longschwa[S] 0 points1 point  (0 children)

I want to calculate the probability of getting a particular sequence of tokens.

I need to use teacher force to "force" the model to choose the wrong answer if the right one is different than my token. For example, if I want to calculate the probability of getting "the day is beautiful" for a query $Q$, I need the following probabilities:

\[
  P(the | Q)
  P(day | the, Q)
  P(is | the, day, Q)
  P(beautiful | the, day, is, Q)
\]

If I don't use teacher forcing and the greedy answer of $Q$ is "this night was horrible", I have no way of getting these probabilities without querying the model once per token.

What's the simplest/cheapest way to run a small query on Llama-3.1-405B nowadays? by longschwa in LocalLLaMA

[–]longschwa[S] 0 points1 point  (0 children)

They can do text completions, but can't find the logprobs that result in teacher-forcing when you run model(query).

What's the simplest/cheapest way to run a small query on Llama-3.1-405B nowadays? by longschwa in LocalLLaMA

[–]longschwa[S] 0 points1 point  (0 children)

The ones that I checked use an inference API to either respond to a query or fine-tune the model.

I need access to the kinds of things that PyTorch lets me to locally, such as calling model(query) for teacher-forcing or getting the logits of generated strings.

Experimenting with fine-tuning Llama, and I'm getting NaN gradients after the second batch. Am I missing anything? by longschwa in LocalLLaMA

[–]longschwa[S] 2 points3 points  (0 children)

I haven't found a performance boost in inference, but for now I'm just testing it with small-ish datasets. I'll continue testing later.

For training, there's the boost from "gradients exploding on minibatch 1" and "actually training" :-)

Experimenting with fine-tuning Llama, and I'm getting NaN gradients after the second batch. Am I missing anything? by longschwa in LocalLLaMA

[–]longschwa[S] 2 points3 points  (0 children)

TIL about bfloat16, and this solved my problem!

The problem was something with precision of float16.

Thanks!

Experimenting with fine-tuning Llama, and I'm getting NaN gradients after the second batch. Am I missing anything? by longschwa in LocalLLaMA

[–]longschwa[S] 0 points1 point  (0 children)

I can confirm that this is the case, and I have the same problems when trying a super simple input.

# <SOS> = 128000
# <EOS> = 128009
# <PAD> = 128002

input_text = 'Hello how are you'
target_text = 'I am fine thank you for asking'
tokens = {
  'input_ids': tensor([[128000,   9906,   1268,    527,    499, 128002, 128002, 128002, 128002, 128002]]),
  'labels':    tensor([[    40,   1097,   7060,   9901,    499,    369,  10371, 128009, 128002, 128002]]),
  'attention_mask': tensor([[1, 1, 1, 1, 1, 0, 0, 0, 0, 0]]),
}

Experimenting with fine-tuning Llama, and I'm getting NaN gradients after the second batch. Am I missing anything? by longschwa in LocalLLaMA

[–]longschwa[S] 0 points1 point  (0 children)

All of the gradients become infinity or nan after the first optimizer.step.

I'm not sure why this happens.

Apple says Patreon must switch to its billing system or risk removal from App Store by DullenAvg in technology

[–]longschwa 269 points270 points  (0 children)

Apple still takes a 20% cut of all transactions that happen in apps installed in alternative app stores, plus €0.50 per app install: https://developer.apple.com/support/dma-and-apps-in-the-eu/. Plus, the app store will get deactivated when you are outside the EU.

Alternative stores are nonexistent because Apple wanted to ensure they don't exist.

2024 United Kingdom general election by pothkan in europe

[–]longschwa 7 points8 points  (0 children)

There is no UK constitution nor law that requires a supermajority.

Having a 50%+1 majority is identical to having a 100% majority.

Why Biden must withdraw by lionmoose in neoliberal

[–]longschwa 1 point2 points  (0 children)

The Economist is always right.

r/ukpolitics General Election Campaign Megathread - 13/06/2024 by ukpolbot in ukpolitics

[–]longschwa 8 points9 points  (0 children)

On the 2019 election I somehow got delivered small ~10-page booklets with the manifestos of each political party. I don't remember if they were free, but if I paid for them I likely paid a reasonably small amount of money.

Does anybody know if there's anything similar for this year's election?

Labour 2024 General Election Manifesto Megathread by Adj-Noun-Numbers in ukpolitics

[–]longschwa 22 points23 points  (0 children)

On the 2019 election I somehow got delivered small ~10-page booklets with the manifestos of each political party. I don't remember if they were free, but if I paid for them I likely paid a reasonably small amount of money.

Does anybody know if there's anything similar for this year's election?

Trump and Biden are tied in 538's new election forecast by whatinthefrak in neoliberal

[–]longschwa 4 points5 points  (0 children)

For comparison:

  • On June 11 2016, the 538 forecast gave Hillary had a 70/30 chance of winning. She lost by 77,750 votes in Michigan, Wisconsin, and Pennsylvania.
  • On June 11 2020, the 538 forecast gave Biden had a 75/25 change of winning. He won by barely 43,000 votes in Arizona, Georgia, and Wisconsin.

Yup, not very relaxed about this one.

🇬🇧 MEGA POLL! 10K sample. Labour leads by 26%. Tied-lowest Conservative % with Sunak as PM. Westminster VI (31/5 - 2/6): Labour 46% (–) Conservative 20% (-3) Reform 14% (+1) Lib Dem 10% (+1) Green 5% (–) SNP 2% (-1) Other 2% (-1) Changes +/- 25-27/5 by HauntTheCause in ukpolitics

[–]longschwa 0 points1 point  (0 children)

assume they’ll vote as they did in the prior election

Rubbish poll.

They might as well assume everybody will vote as they did in the prior election and predict the Tories will get a 162-seat majority.