« first day (4966 days earlier)   
01:00 - 13:0013:00 - 18:00

1:03 PM
It's supposed to be a simple link to open a PDF, so it being zipped really breaks the flow of UX
 
 
2 hours later…
2:40 PM
@matszwecja sure
@matszwecja ok, about that what I'm pondering
 
2:57 PM
What?
1
Q: Troubleshooting FP8 Conversion Discrepancy from Float32

Daniel DavidI'm trying to convert a float32 to an fp8 float. There's some detail in the code that is causing a discrepancy in the results. I can't figure out what it is, could someone help me? def float32_to_ofp8_and_back(value: float, encoding: str) -> float: import numpy as np # Determine the ...

I asked ChatGPT to create the 8-bit float type in NumPy, does this make sense to you?
Consider this: dpaste.org/tc1QL
 
3:17 PM
Take this with a grain of salt as I'm not very familiar with technical side of numpy, but I'm afraid that's just a bunch of nonsense
 
That looks suspiciously like a uint8 with generated hot sauce on top.
 
hmmm
thanks for your comments
 
It's easy to tell from "I asked ChatGPT".
 
What?
 
That it's nonsense.
 
3:21 PM
That it's nonsense when you look up close. That ^
There's no free lunch, Marco. Defining a non-trivial new dtype is difficult, especially if you want it to be efficient.
I'm not familiar with the new user dtype machinery, but still.
 
https://chat.stackoverflow.com/transcript/message/57372437#57372437:

Fixed method that wasn't working:
def __float__(self):
    return float(self.float8_to_float32(self.value)) # Ensure the return type is built-in float
@AndrasDeak--СлаваУкраїні ok
@AndrasDeak--СлаваУкраїні yeah
@AndrasDeak--СлаваУкраїні I see
 
Not that I'm intimately familar with custom numpy dtypes, but the entire approach seems nonsensical from step one. Using numpy to basically just store anonymous bytes, with a Python class on top to do all the bit fiddling, so operations can be done in with unwanted precision, is multiple levels of breeding race snails.
 
But it's a possible task, right? Would it be worth a question on SO? How to create an fp8 in Python?
 
3:38 PM
People use SO for whatever suits them these days, so, well,... if you think it's worth it then I guess "yes".
 
Ok, thanks
 
@Marco If you were on CR I'd say shoot your shot. Best case you get an answer, worst case you are where you already are. However I had someone complain I was answering off-topic questions when trying to get 10k before... so you know, grain of salt here.
 
@Marco did you see this one?: stackoverflow.com/questions/38975770/…
why not use int8?
 
@Peilonrayz Ok, thanks
@NordineLotfi Yes
@NordineLotfi Because I would need a certain precision, including to be able to normalize values between 0 and 1.
 
4:36 PM
Wowwww, there's 2 new float8 types in TensorFlow!!! tensorflow.org/api_docs/python/tf/dtypes/experimental
Perfeeeeeect
 
5:23 PM
@matszwecja i'm quite sure it's not a zip file if you specify the artifact name
depending on what your usecase it, maybe creating a github "release" and attaching the files to that would be an option? those can be publicly downloaded
 
01:00 - 13:0013:00 - 18:00

« first day (4966 days earlier)