Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 3y ago · link · parent

Who tf downvotes something like this?

By all means, HN has lost it.

comment 3y ago · link · parent

The topics that are not new to me and are of interest come up after its training-dataset-cutoff, thus it can produce bogus information.

I think ChatGPT and the likes should be thought of as cartographers who when probed can provide an outline of regions of the knowledge space and give hints as to what could be useful.

Given then a high level but also imprecise map, I can ask the GPS for clarity as to where I am going.

The problem is that I often don't know where that is and thus I don't know what to ask from the GPS, but I can describe it to the cartographer, and they can draw a map for me.

In this analogy, the GPS is search engines / books / papers.

comment 3y ago · link · parent

Basically I described the problem I am trying to solve; I ask it to behave as a seasoned professor of comp sci or w/e depending on my hunch, we go back and forth where I ask questions, add constraints to the system, and in turn it gives me ideas into what I should look into more.

It's the Socratic method on steroids, where the student is probing a possibly fallible professor with the library of Alexandria at their hands.

It is by no means perfect, but it allows me to identify what general field I am going into, what I should read about it, what core concepts are important, how to expand my knowledge, and most importantly, helps me better formulate the problem by asking questions or failing to understand what I want to convey.

comment 3y ago · link · parent

Copilot and chatgpt are some of the services i am perfectly content paying for.

ChatGPT is a great way to delve into new topics, and for that alone it’s worth it.

comment 3y ago · link · parent

I have tried everything from this thread for LVL4 and no dice.

comment 3y ago · link · parent

Am I the only one stuck at lvl4 with all the ideas here failing? :thinking:

comment 3y ago · link · parent

Is he really a slacker?

To my limited knowledge, "Don't try" is to say do something that you don't need effort to start doing, something that doesn't feel like a chore to you, something that you are passionate about.

He also mentioned going hungry a lot for his passion.

I don't think that someone who perseveres through all that is a slacker, but again, my understanding is limited.

comment 3y ago · link · parent

> and his effort seems to have positive side effects.

One hour weapon delivery anywhere on earth is not exactly a positive side-effect.

https://www.businessinsider.com/musks-spacex-partners-us-mil...

comment 3y ago · link · parent

Did I ever claim that it created a tape?

If my comments implied that, then I am sorry for miscommunicating, but by calling it "dynamic" I meant that there is no compiling of a tape or tracking it as done with TF and the likes.

> I nternally, a Variable is simply a wrapper around a Tensor that also holds a reference to a graph of Function objects. This graph is an immutable, purely functional representation of the derivative of computed function; Variables are simply mutable pointers to this graph (they are mutated when an in-place operation occurs; see Section 3.1). A Function can be thought of as a closure that has all context necessary to compute vector-Jacobian products. They accept the gradients of the outputs, and return the gradients of the inputs (formally, the left product including the term for their respective operation.) A graph of Functions is a single argument closure that takes in a left product and multiplies it by the derivatives of all operations it contains. The left products passed around are themselves Variables, making the evaluation of the graph differentiable.

Please explain how it doesn't hold a graph when it literally says it is holding one, dynamically created and kept alive via ref counting.

I am losing my mind here.

comment 3y ago · link · parent

I agree. Instance from today; I have a very novel task at work that nobody seems to know how to approach, I had a hunch that metaheuristics could play a role; I used ChatGPT to help me better formulate the problem and at least now there is a way to tackle the problem.

It made a few errors in at least presenting my ideas, but these errors were a consequence of my misunderstanding and lack of clarity.

The errors themselves, in my opinion, are invaluable because they force you to think, to be clear, and to guide the model into giving me useful ideas to look into.

For all intents and purposes, it was an example of the Socratic method, albeit inverted, where the student is asking questions to an all knowing teacher, and the teacher / LLM responds with ideas and hints. Ultimately, it's up to the student to synthesize the solution, be critical of the data, and tie everything together.

comment 3y ago · link · parent

> PyTorch (and Chainer) eschew this tape; instead, every intermediate result records only the subset of the computation graph that was relevant to their computation. This means PyTorch users can mix and match independent graphs however they like, in whatever threads they like (without explicit synchronization). An added benefit of structuring graphs this way is that when a portion of the graph becomes dead, it is automatically freed; an important consideration when we want to free large memory chunks as quickly as possible.

Either I am an absolute fucking moron or this reads that PyTorch keeps track of a graph.

Please explain.

comment 3y ago · link · parent

> I think pg underestimates the amount of trivial and mundane copy most people write day in day out.

Can attest. I had to write a bunch of definitions and do some preliminary research though nothing very technical. I asked chatGPT, it listed a bunch of stuff, I looked around the net, found some more hints, asked again; then I had the model to collect everything for me into a neat little markdown doc, and shared that.

Saved me a couple of hours of searching and writing useless / boring stuff.

comment 3y ago · link · parent

I have YouTube Premium, it comes with YouTube music; I am perfectly happy paying for that as I consolidate music streaming with ad-free watching in my bed.

It replaced apple music and spotify for me; plus it gives me access to all sorts of music that is only released there as videos.

If I ever have to watch youtube with ads, I am going to just not YT at all.

comment 3y ago · link · parent

Anything that didn't provide an evolutionary or reproductive advantage, or liking it / disliking it is simply a side-effect; e.g. adrenaline pumps / extreme sports, puzzles, modern creative work.

comment 3y ago · link · parent

> we redefine all the words

I work for AWS; these are the definitions we use, more or less.

https://stackoverflow.com/questions/17384020/what-do-transpa...

> whether the graph is created at runtime

I was specifically referring to the computation graph of the model that is used by autograd.

Taken from [1,2]:

> Instead, PyTorch uses the operator overloading approach, which builds up a representation of the computed function every time it is executed.

> Internally, a Variable is simply a wrapper around a Tensor that also holds a reference to a graph of Function objects. This graph is an immutable, purely functional representation of the derivative of computed function; Variables are simply mutable pointers to this graph.

> A Function can be thought of as a closure that has all context necessary to compute vector-Jacobian products. They accept the gradients of the outputs, and return the gradients of the inputs (formally, the left product including the term for their respective operation.) A graph of Functions is a single argument closure that takes in a left product and multiplies it by the derivatives of all operations it contains. The left products passed around are themselves Variables, making the evaluation of the graph differentiable.

But what do I know?

> libtorch is just a backend - it's not - it is, for all intents and purposes, pytorch.

Sure, libtorch is PyTorch; that doesn't mean one can't take the semantics of PyTorch and implement them in just numpy backed python. Doesn't mean it will be fast.

[1] PyTorch: An Imperative Style, High-Performance Deep Learning Library

[2] Automatic differentiation in PyTorch

comment 3y ago · link · parent

Transparent in this case means the average user does not need to interact with the underlying system, it is there, it does stuff, but the user does not see it or interact directly.

What is opaque is jax's tracer objects in the sense that the system exists, is there, the user is aware that it is there, and you can't peek inside it without actively going out of your way.

With PyTorch you can implement your own functions with their own forward and backward passes; whether the underlying operations use libtorch is irrelevant, that is simply a backend.

The computation graph __is__ created at runtime, whether the scaffolding for this is done in libtorch or directly in python is not relevant.

comment 3y ago · link · parent

I am not particularly fond of this kind of moral flexibility. It's lying and the person found ways to justify themselves. This isn't the kind of person I can trust to be honest with me, they don't seem reliable either. Thanks, but no thanks.

comment 3y ago · link · parent

I can’t remember, it was some statistical tools, running a few simulations, it was 2 years ago.

comment 3y ago · link · parent

I'd love to see examples :D

comment 3y ago · link · parent

I really don't feel that there is magic in PyTorch or jax, but that may be because I have written my own autograd libs.

In PyTorch you have a graph that is created on runtime by connecting the operations together in a transparent manner.

Jax may feel a bit magic, but all that's done is sending / splitting tracers and recording the operations and compiling; by limiting the language, you have controlled branching with the proper semantics.

---

The main reason I have had such with Julia is simply because of how early / soon I ended up needing to use them whereas with the other languages, you can get away without getting into the very messed up things.

comment 3y ago · link · parent

For me, the issue is that there's too much magic happening, e.g. with macros, but finding or solving the issues seems needlessly convoluted. Haskell, Rust, Python, or even C++ feel a lot less magic, and more reasonable despite all being quite different.

comment 3y ago · link · parent

This is false. I messed up last night when writing this. Sorry.

comment 3y ago · link · parent

Ugh I messed up last night. GP is correct.

comment 3y ago · link · parent

As long as lazy evaluation exists, self-reference is fine, no?

Hofstadter talks about something similar in his books.

comment 3y ago · link · parent

Your interpretation is wrong then. We have that rain -> drive home; here is the truth table.

    rain | drive | rain->drive home
    false| drive | true
    true | drive | drive
Thus, the statement could be true, if you have driven home, but you did not provide such information.

Just because something is on the right hand side of an implication doesn't make it true. The statement A=>B is true iff A is false, or A is true and B is true at the same time.

Or alternatively, (not rain) || drive home

    rain | not rain | drive home | (not rain) || drive home
    true | false    | true       | true
    true | false    | false      | false
    false| true     | true       | true
    false| true     | false      | true
So it is entirely possible to not have rained, and not to have driven home.

The contrapositive is !drive home -> !rain

    (drive home) | rain | !(drive home) | !rain | !(drive home) -> !rain
    true         | false| false         | true  | true
    true         | true | false         | false | true
    false        | false| true          | true  | true
    false        | true | true          | false | false
Thus whether the statement is true depends entirely on whether it rained; but you can not infer that as both options yield a true statement.

This whole thread and chain is affirming the consequent.

> In propositional logic, affirming the consequent, sometimes called converse error, fallacy of the converse, or confusion of necessity and sufficiency, is a formal fallacy of taking a true conditional statement (e.g., "if the lamp were broken, then the room would be dark"), and invalidly inferring its converse ("the room is dark, so the lamp must be broken"), even though that statement may not be true. This arises when the consequent ("the room would be dark") has other possible antecedents (for example, "the lamp is in working order, but is switched off" or "there is no lamp in the room").

> Converse errors are common in everyday thinking and communication and can result from, among other causes, communication issues, misconceptions about logic, and failure to consider other causes.

https://en.wikipedia.org/wiki/Affirming_the_consequent

comment 3y ago · link · parent

I don't think I made the claim that it is infallible.

My first claim was that ChatGPT and the likes can and will ask you to elaborate, claiming otherwise is fundamentally false.

comment 3y ago · link · parent

The very nature of mathematics is such that we can't determine what is true and what is not, e.g. incompleteness, undecidability.

The very nature of your brain and its construction means that you hallucinate your reality and you can not determine what is [objectively] true. (cf. all of neuroscience)

I'd go as far as to claim that ChatGPT is far more reliable than the average person.

comment 3y ago · link · parent

This is seriously messing up with my head. What is wrong with the response?

The following generated by GPT4 seems reasonable to me

Based on the given information, we can use logical reasoning to determine if it rained today. The statement "If it rains today, I will drive home" can be represented as:

Rains → Drive Home

However, you mentioned that you did not drive home, which means the second part of the statement is false:

¬Drive Home

In this case, we cannot definitively conclude whether it rained today or not. It is possible that it did not rain, or it rained, but you chose another mode of transportation for some reason.

1
444546
97