Better HN
topnewbestaskshowjobs
Log inSign up

_ntka

4,749 karma · joined Apr 30, 2011 (15y ago) · 509 submissions

Submissions

comment 2y ago · link · parent

Radiation would perhaps be better pictured with a light blue glow (Cherenkov radiation).

The green glow used in pop culture has its origin in the widespread use of radium paint to achieve a glow-in-the-dark effect (e.g. on watch faces) in the early 20th century. I still own a radium watch. The paint was always fluorescent green. And it did glow.

comment 2y ago · link · parent

Isn't JAX the most widely used framework in the GenAI space? Most companies there use it -- Cohere, Anthropic, CharacterAI, xAI, Midjourney etc.

comment 2y ago · link · parent

No, I am saying, with JAX you train on G.P.U., with a G, and your training runs are >2x faster, so your training costs are 2x lower, which matters whether your training spend is $1k or $100M. You're not interested in that? That's ok, but most people are.

comment 2y ago · link · parent

Or alternatively, do you want faster training runs (and thus lower training costs)? Then JAX is a good choice for you.

comment 2y ago · link · parent

It's all about cost and performance. If you can train a foundation model 2x faster with JAX on the same hardware, you are effectively slashing your training costs by 2x, which is significant for a multi-million dollar training run.

comment 2y ago · link · parent

JAX is used by almost every large genAI player (Anthropic, Cohere, DeepMind, Midjourney, Character.ai, XAi, Apple, etc.). Its actual market share in foundation models development is something like 80%.

Also JAX is not just for TPU. It's mainly for GPU. It's usually 2-3x faster than torch on GPU: https://keras.io/getting_started/benchmarks/

Far more industry users of JAX use it on GPU compared to TPU.

comment 4y ago · link · parent

This is not true, the initial Keras port of the model was done by Divam Gupta who is not affiliated with Keras or Google. He works at Meta.

The benchmark in the article uses mixed precision (and equivalent generation settings) for both implementations, it's a fair benchmark.

In the latest StackOverflow global developer survey, TensorFlow had 50% more users than PyTorch.

comment 7y ago · link · parent

7 cubic km of olivine is a staggering amount. Makes you wonder whether the effect of deploying the olivine would even offset the energy cost and CO2 emissions of extracting and moving around all that rock.

9.

Symbolic and Imperative APIs in TensorFlow 2.0(medium.com ↗)

2 points · by fchollet · 7y ago · discuss

comment 7y ago · link · parent

If I were to divide large tech companies between "good" and "bad", the only one I would classify as "bad" is Facebook. Most are neutral-to-good. Facebook has a huge societal and human cost and has hardly any benefits to show for it (unlike, say, fossil energy companies, which are a threat to civilization but at least serve a useful role by fulfilling our energy needs).

Facebook is a democracy-threatening, attention-wasting, extractive institution, with a deeply unethical leadership. Most tech companies are neutral -- Amazon, Microsoft, Uber etc., I assume they're doing business for profit and not social good, but they do provide value and largely play by the rules. Some other companies I would classify as "good" as they provide considerable value to society as a by-product of doing business, like Apple and Google (disclaimer: I work for Google, and I am quite happy about that).

Facebook is the only large tech company I can think of that is just plain evil. There's no other like it. It's in a league of its own.

11.

The Bitcoin Network at Risk(medium.com ↗)

5 points · by fchollet · 8y ago · discuss

comment 8y ago · link · parent

> there isn't anyone living today that has any idea how to get to AGI

Not true.

13.

Deep Reinforcement Learning: Playing CartPole with Tf.keras and Eager Execution(medium.com ↗)

1 points · by fchollet · 8y ago · discuss

14.

Machine Learning Guides(developers.google.com ↗)

708 points · by _ntka · 8y ago · 54 comments

15.

Google's guide to text classification(developers.google.com ↗)

7 points · by fchollet · 8y ago · discuss

comment 8y ago · link · parent

When someone shows you who they are, believe them the first time.

17.

The impossibility of intelligence explosion(medium.com ↗)

114 points · by _ntka · 8y ago · 140 comments

comment 9y ago · link · parent

> IMO, AssertionErrors should indicate bugs in the called API. ValueErrors indicate bugs in the caller's use of the API.

Yes, I agree with this stance. `ValueError` should be used for user-provided input validation (as well as `TypeError` in some cases). But as it happens, many Python developers use `assert` statements to do input validation, and generally don't provide any error messages in their `assert` statements. I'm suggesting going with `ValueError` (and a nice message) instead.

19.

User experience design for APIs(blog.keras.io ↗)

274 points · by _ntka · 9y ago · 42 comments

comment 9y ago · link · parent

To clarify: `tf.keras` is an implementation of the entire Keras API written from the ground-up in pure TensorFlow. The first benefit of that is a greater level of blending between non-Keras-TF workflows and TF-Keras workflows: for instance, layers from `tf.layers` and `tf.keras` are interchangeable in all use cases.

Additionally, this enables us to add TensorFlow-specific features that would be difficult to add to the multi-backend version of Keras, and to do performance optimizations that would otherwise be impossible.

Such features include support for Eager mode (dynamic graphs), support for TensorFlow Estimators, which enables distributed training and training on TPUs, and more to come.

comment 9y ago · link · parent

To play with Capsule Networks in practice, you can try this simple Keras implementation: https://github.com/XifengGuo/CapsNet-Keras

comment 9y ago · link · parent

But that is precisely how you should be using Keras!

* If you are implementing a standard model (that's 90% of industry use cases, and a large fraction of research use cases as well), Keras primitives considerably simplify your workflow and make you a lot more productive.

* When you need to implement something highly customized or unusual, you can revert back to writing pure TensorFlow code, which will integrate seamlessly with your Keras workflow (via custom layers, functions etc).

Basically, Keras increases your productivity for common use cases, without any flexibility cost for rare/custom use cases. It is meant to be used together with TF, not as a replacement for TF.

23.

A ten-minute introduction to sequence-to-sequence learning in Keras(blog.keras.io ↗)

1 points · by fchollet · 9y ago · discuss

24.

A ten-minute introduction to sequence-to-sequence learning in Keras(blog.keras.io ↗)

6 points · by fchollet · 9y ago · discuss

comment 9y ago · link · parent

CoreML supports Keras but not TensorFlow because Keras models form a well-structured subset of all possible TensorFlow graphs. It would be quite difficult to support completely arbitrary TensorFlow graphs, but supporting every Keras layer is relatively straightforward.

To answer your question: I had no knowledge of this ONIX project before the public announcement today. Speaking purely for myself, if I wanted to develop a universal model exchange format, the first step I would take would be to get in touch with the makers of the frameworks that sum to 80-90% of the market share -- TF, Keras, MXNet. But maybe such a strategy was thought to be superfluous in this case -- for instance, because ONIX may not actually be intended as a universal model exchange format.

12345
17