Better HN
topnewbestaskshowjobs
Log inSign up

tehsauce

1,636 karma · joined Dec 10, 2016 (9y ago) · 422 submissions

https//github.com/PWhiddy
Submissions

comment 2y ago · link · parent

At least one of their runtime implementations I checked out was implemented on top of Skia. Looks like they support a number of possible backends!

comment 2y ago · link · parent

I was curious how well gpt-4 could de-noise the text. With the prompt:

uncover the text from the message which as had noise introduced: In Gramm@r, an @R+icle_Is.anY memBer I6.@ claSS oF_dedicateb_WOnbs that arE used m|th_No0n phR@ses tO MarK_Th4 id4ntifiabilitY of +Je ne64Rents of THe noun qhnases. Th4 c@tegoRy of articles constitutES a panT oF sPEecJ:

It was able to perfectly recover the original text.

comment 2y ago · link · parent

Still no GPU support. They are nowhere near a MVP.

comment 2y ago · link · parent

Have you considered using jax? you can efficiently compute the jacobian (even using the gpu if you want) without leaving python at all. The api is also numpy compatible!

comment 2y ago · link · parent

It's fascinating that it can model so much of the subtle dynamics, structure, and appearance of the world in photorealistic detail, and still have a relatively poor model of things like object permanence:

https://cdn.openai.com/sora/videos/puppy-cloning.mp4

Perhaps there are particular aspects of our world that the human mind has evolved to hyperfocus on.

Will we figure out an easy way make these models match humans in those areas? Let's hope it takes some time.

comment 2y ago · link · parent

How much does this particular result change when running in release mode?

comment 2y ago · link · parent

I observed this phenomena not too long ago while training an RL agent to play pokemon using an intrinsic novelty reward based on the number of unique screens the agent had seen. The goal was to get it to explore the map, but instead it became fixated watching animated water, flowers, and npcs in the starting town. I made an extensive video analyzing the experiments, you can find it by searching "ai plays pokemon" :)

comment 3y ago · link · parent

Over the last couple years, I've been training an AI to play Pokemon Red. I put together a video that tells the story of the AI's learning and discusses lots of technical details.

You can also download and play with the model yourself!

https://github.com/PWhiddy/PokemonRedExperiments

Enjoy!

39.

Training AI to Play Pokemon with Reinforcement Learning(youtube.com ↗)

11 points · by tehsauce · 3y ago · 1 comment

comment 3y ago · link · parent

> Apple shocked us all by addressing this head-on: The iPhone 15 line charges via USB-C instead of Lightning, and this standard USB port can do a lot

comment 3y ago · link · parent

That’s for lossless compression, i think there’s special opportunities for multi image lossy

comment 3y ago · link · parent

I've seen it although haven't dived deep into it. It looks like they have some interesting support for particle cell data structures, but is fairly complicated and carries limitations: https://jax-md.readthedocs.io/en/main/_modules/jax_md/partit...

comment 3y ago · link · parent

Jax is super useful for scientific computing. Although nbody sims might not be the best application. A naive nbody sim is very easy to implement and accelerate in jax (here’s my version: https://github.com/PWhiddy/jax-experiments/blob/main/nbody.i...), but it can be tricky to scale it. This is because efficient nbody sims usually either rely on trees or spatial hashing/sorting which are tricky to efficiently implement with jax.

comment 3y ago · link · parent

“Notice that Rust has a built-in vector class, as well as iterators” Pybind with c++ will also automatically convert between python and c++ standard types

comment 3y ago · link · parent

Oof, right as the switch demolished the xbox in hardware sales.

comment 3y ago · link · parent

Have another look at the first example I shared. One major limitation of glsl is a lack of functional programming. In that example, we pass functions to other functions, and iterate over arrays of functions, neither of which are possible in glsl. This is used to implement generic transformations of SDFs. If you did the same with just glsl it would be much longer, harder to read, and there would be duplicated code.

You can even use recursion (with limitations of course)!

https://shaderpark.com/sculpture/-N8ntgGcPiXK5igOagRW

At the same time, many more people know javascript than shader languages, so this makes it easier for beginners to get their hands dirty and can be a gateway to gpu programming. So there are benefits for both novices and advanced users! There are pitfalls to this approach too of course and it certainly isn't a replacement for glsl, but the purpose is simply to explore new possibilities :)

comment 3y ago · link · parent

Shaderpark does a bit more than "pass around" javascript functions, it transpiles them to glsl. Believe it or not, web browsers themselves only transpile webgl shaders to other high level shader languages: hlsl on windows, msl on macos/ios, and glsl or sprir-v on linux. The os then compiles these to bytecode, and the driver finally compiles them to machine code which is sent to the GPU. So a webgl glsl shader isn't "running the gpu" or "doing rendering" any more than a js shader. They're both just high level languages at the top of a compilation chain ultimately targeting the GPU.

comment 3y ago · link · parent

Maybe another example will be helpful :)

https://shaderpark.com/sculpture/-M_TY8dwxuyliltrFjP2

No SDFs involved in this one.

comment 3y ago · link · parent

The first example was a js shader too but because it also included glsl it could have been easy to miss that. So the second example just emphasizes that better. Regarding why, see my first answer or feel free to browse the thousands of other examples on the site!

comment 3y ago · link · parent

It’s not obvious in that previous example, but you can also write shaders in js, in addition to the built in abstractions for SDFs.

https://shaderpark.com/sculpture/-Nc57ho13qXl3G7fQ2wy

There are some limitations but again the point is just to explore new possibilities!

comment 3y ago · link · parent

GLSL is great! But it is very limited in many aspects. Js enables us to create a more ergonomic APIs for SDFs similar to processing/p5. You can easily mix the glsl and js code, and it also allows you to directly implement transformations on SDF functions, like revolving or extruding a 2D SDF into a 3D one with a transformation function:

https://shaderpark.com/sculpture/-NeEtQ1JEccER6MjPQzq

It's not meant to be a replacement for glsl, just to open up some cool new possibilities!

comment 3y ago · link · parent

For anyone interested in playing around with SDFs, my friend and I made this open source library to make working with them more efficient, and you can write shaders using javascript https://github.com/shader-park/shader-park-core

comment 3y ago · link · parent

“Robots will use all the CPUs in your computer to solve levels in the background. Not only does it cut down the time to re-test all levels, it makes your room nice and warm.”

comment 3y ago · link · parent

Does this count?

https://github.com/sympy/sympy/blob/master/sympy/integrals/r...

comment 3y ago · link · parent

“Welcome to Jupyter AI, which brings generative AI to Jupyter”

Kinda strange statement. I think of Jupyter as one of the places generative AI originated!

comment 3y ago · link · parent

I was thinking it could be a keyboard designed to make sounds special sounds so it can be interpreted very accurately

comment 3y ago · link · parent

Would love a wireless keyboard that works using this! It wouldn’t need any battery, charging or syncing!

comment 3y ago · link · parent

If AI becomes cheaper than human labor, humans laborers across the globe will lose all of their power and leverage. A “pause” might not be a realistic solution, but this kind of parody isn’t any more helpful than climate change denial.

comment 3y ago · link · parent

I think you’re right. Would be very hard to exploit I imagine though.
12345
15