636 points · by canada_dry · 5y ago · 146 comments
I will admit, I'm especially impressed that it caught the "as BS" part in its code generation -- then again, it's entirely possible that a lot of code examples do that, so maybe a more stunning result would be "as BSOUP" and see if it still generates plausible code
what i understand from a completely armchair perspective, is that this kind of context-holding is THE feature of this wave of ai models, which is what similarly allows it to generate paragraphs of prose seemingly out of whole cloth, tracking what it's talking about as it rambles along. the output seems (with occasional glaring issues) remarkably cohesive and realistic, given that it has nothing original to say. I picture it as taking sentence structure it's seen before, and narrative structure it's seen before, and topics it's seen before, mixing them all up, and putting them back together like multidimensional legos- from this perspective, processing the 'import as' lego seems to fit right in.
The whole concept is fascinating, and i'm immensely relieved that we seem to have such a competitive open-source implementation of this nightmare
I also want to apologize to Eleuther for giving them a hard time in the past. My earlier concerns were unjustified. To be completely honest, I was jealous they achieved everything I tried to achieve with my own open source research lab attempt. It took a long time to even recognize that jealousy in myself, let alone set it aside. Sorry.
The credit for this work goes almost entirely to kindiana, aka Ben Wang. Remember that name; you’ll be seeing a lot of it in the coming decade. It’s clear to me that whichever lab he ends up at (he’s an undergrad! Google let him slip away because he didn’t have a degree!), he’s gonna be changing the world. Don’t know what, don’t know how, know he will.
Every aspect of that codebase is immaculate. Most research code is not pretty; this looks carved out of marble and placed in a museum.
Without Eleuther’s TPU resources, this work wouldn’t have happened. Tensorfork (my lab) didn’t get access to the TPU VM alpha. And TPU VMs were an absolute necessity here. (TPU VMs are a new thing; they’ve been in alpha since December, but only recently launched. If curious see https://github.com/shawwn/website/blob/master/jaxtpu.md and https://github.com/shawwn/website/blob/master/mlmind.md for why it’s the future of ML.)
Eleuther also helped test the model thoroughly. Leo Gao (go follow him: https://twitter.com/nabla_theta?s=21) ran GPT-J through the gauntlet. He was the primary person behind The Pile, the training data that makes any of this possible. I can say with absolute certainty and no hesitation that there are no “gotchas” here.
Eleuther’s https://6b.eleuther.ai page looks wonderful too. It’s like a free OpenAI API playground that everyone can try. Keeping it running for months is no small achievement. (Set top_p to 1.0 and temp to 0.8; the defaults are pretty bad.)
Congratulations, and thank you everyone for all your hard work. The world is so much better for having access to this level of quality.
I also tried the playground and was impressed that it was free! It must be a sizable chunk of money to run that.
It's thanks to TFRC. It's the most world-changing program I know of. It's why I go door to door like the proverbial religious fanatic, singing TFRC's praises, whether people want to listen or not.
Because for the first time in history, any capable ML hacker now has the resources they need to do something like this.
Imagine it. This is a legit OpenAI-style model inference API. It's now survived two HN front page floods.
(I saw it go down about an hour ago, so I was like "Nooo! Prove you're production grade! I believe in you!" and I think my anime-style energy must've brought it back up, since the API works fine now. Yep, it was all me. Keyboard goes clackclackclack, world changes, what can I say? Just another day at the ML office oh god this joke has gone on for like centuries too long.)
And it's all thanks to TFRC. I'm intentionally not linking anything about TFRC, because in typical google fashion, every single thing you can find online is the most corporate, soulless-looking "We try to help you do research at scale" generic boilerplate imaginable.
So I decided to write something about TFRC that wasn't: https://blog.gpt4.org/jaxtpu
(It was pretty hard to write a medieval fantasy-style TPU fanfic, but someone had to. Well, maybe no one had to. But I just couldn't let such a wonderful project go unnoticed, so I had to try as much stupid shit as possible to get the entire world to notice how goddamn cool it is.)
To put things into perspective, a TPU v2-8 is the "worst possible TPU you could get access to."
They give you access to 100.
On day one.
This is what originally hooked me in. My face, that first day in 2019 when TFRC's email showed up saying "You can use 100 v2-8's in us-central1-f!": https://i.imgur.com/EznLvlb.png
The idea of using 100 theoretically high-performance nodes of anything, in creative ways, greatly appealed to my gamedev background.
It wasn't till later that I discovered, to my delight, that these weren't "nodes of anything."
These are 96 CPU, 330GB RAM, Ubuntu servers.
That blog post I just linked to is running off of a TPU right now. Because it's literally just an ubuntu server.
This is like the world's best kept secret. It's so fucking incredible that I have no idea why people aren't beating down the doors, using every TPU that they can get their hands on, for as many harebrained ideas as possible.
God, I can't even list how much cool shit there is to discover. You'll find out that you get 100Gbit/s between two separate TPUs. In fact, I'm pretty sure it's even higher than this. That means you don't even need a TPU pod anymore.
At least, theoretically. I tried getting Tensorflow to do this, for over a year.
kindiana (Ben Wang), the guy who wrote this GPT-J codebase we're all talking about, casually proved that this was not merely theoretical: https://twitter.com/theshawwn/status/1406171487988498433
He tried to show me https://github.com/kingoflolz/swarm-jax/ once, long ago. I didn't understand at the time what I was looking at, or why it was such a big deal. But basically, when you put each GPT layer on a separate TPU, it means you can string together as many TPUs as you want, to make however large of a model you want.
You should be immediately skeptical of that claim. It shouldn't be obvious that the bandwidth is high enough to train a GPT-3 sized model in any reasonable time frame. It's still not obvious to me. But at this point, I've been amazed by so many things related to TPUs, JAX, and TFRC, that I feel like I'm dancing around in willy wonka's factory while the door's wide open. The oompa loompas are singing about "that's just what the world will do, oompa-loompa they'll ignore you" while I keep trying to get everybody to stop what they're doing and step into the factory.
The more people using TPUs, the more google is going to build TPUs. They can fill three small countries entirely with buildings devoted to TPUs. The more people want these things, the more we'll all have.
Because I think Google's gonna utterly annihilate Facebook in ML mindshare wars: https://blog.gpt4.org/mlmind
TPU VMs just launched a month ago. No one realizes yet that JAX is the React of ML.
Facebook left themselves wide open by betting on GPUs. GPUs fucking suck at large-scale ML training. Why the hell would you pay $1M when you can get the same thing for orders of magnitude less?
And no one's noticed that TPUs don't suck anymore. Forget everything you've ever heard about them. JAX on TPU VMs changes everything. In five years, you'll all look like you've been writing websites in assembly.
But hey, I'm just a fanatic TPU zealot. It's better to just write me off and keep betting on that reliable GPU pipeline. After all, everyone has millions of VC dollars to pour into the cloud furnace, right?
TFRC changed my life. I tried to do some "research" https://www.docdroid.net/faDq8Bu/swarm-training-v01a-pdf back when Tensorflow's horrible problems were your only option on TPUs.
Nowadays, you can think of JAX as "approximately every single thing you could possibly hope for."
GPT-J is proof. What more can I say? No TFRC, no GPT-J.
The world is nuts for not noticing how impactful TFRC has been. Especially TFRC support. Jonathan from the support team is just ... such a wonderful person. I was blown away at how much he cares about taking care of new TFRC members. They all do.
(He was only ever late answering my emails one time. And it was because he was on vacation!)
If you happen to be an ambitious low-level hacker, I tried to make it easier for you to get your feet wet with JAX:
1. Head to https://github.com/shawwn/jaxnotes/blob/master/notebooks/001...
2. Click "Open in Collaboratory"
3. Scroll to the first JAX section; start reading, linearly, all the way to the bottom.
I'd like to think I'm a fairly capable hacker. And that notebook is how I learned JAX, from zero knowledge. Because I had zero knowledge, a week or two ago. Then I went from tutorial to tutorial, and copied down verbatim the things that I learned along the way.
(It's still somewhat amazing to me how effective it is to literally re-type what a tutorial is trying to teach you. I'd copy each sentence, then fix up the markdown, and in the process of fixing up the markdown, unconsciously osmose the idea that they were trying to get across.)
The best part was, I was connected remotely to a TPU VM the whole time I was writing that notebook, via a jupyter server running on the TPU. Because, like I said, you can run whatever the hell you want on TPUs now, so you can certainly run a jupyter server without breaking a sweat.
It's so friggin' nice to have a TPU repl. I know I'm just wall-of-text'ing at this point, but I've literally waited two years for this to come true. (There's a fellow from the TPU team who DMs with me occasionally. I call him TPU Jesus now, because it's nothing short of a miracle that they were able to launch all of this infrastructure -- imagine how much effort, from so many teams, were involved in making all of this possible.)
Anyway. Go read https://github.com/shawwn/website/blob/master/mlmind.md to get hyped, then read https://github.com/shawwn/website/blob/master/jaxtpu.md to get started, and then read https://github.com/shawwn/jaxnotes/blob/master/notebooks/001... to get effective, and you'll have all my knowledge.
In exchange for this, I expect you to build an NES emulator powered by TPUs. Do as many crazy ideas as you can possibly think of. This point in history will never come again; it feels to me like watching the internet itself come alive back in the 80's, if only briefly.
It's like having a hundred raspberry pis to play with, except every raspberry pi is actually an ubuntu server with 96 CPUs and 330GB of RAM, and it happens to have 8 GPUs, along with a 100Gbit/s link to every other raspberry pi.
> That blog post I just linked to is running off of a TPU right now. Because it's literally just an ubuntu server.
It's not literally running on a TPU, is it? I assume it's running on that Ubuntu server that has good ol' CPU that is running the web service + a TPU accelerator doing the number crunching. Or is my world view out of date?
> The best part was, I was connected remotely to a TPU VM the whole time I was writing that notebook, via a jupyter server running on the TPU. Because, like I said, you can run whatever the hell you want on TPUs now
Again, I have some hesitations interpreting this literally. I assume what you're saying is "Google runs a Jupyter server somewhere in the cloud and it gives you access to TPU compute". I don't think I could run, say, a Linux Desktop app with a GUI (falls under "whatever the heck I want") on a TPU if I wanted to, correct? But, in case I could, how would I get that kind of direct / low level access to it? Are they just giving you a pointer to your instance and you get complete control?
I don't know much about the ML space, but is this a bit like Google Earth Engine, amazing tech, very generous resources free for researchers and development but cannot be ported elsewhere so to commercialise you then are limited to this very environment which is not cheap. I recently reached out to Google for pricing on GEE, 3 weeks later I got a response. 3 weeks.
If this is the really the only reason he wasn't hired, that's ridiculous.
I have a degree in a field totally unrelated to computer science and I've been a developer for 20+ years. Very "senior" at the moment.
That said, I wouldn’t feel bad for Ben. The world is his oyster.
My name is on The Pile paper https://arxiv.org/abs/2101.00027 but I didn't do anything except make the books3 dataset. Stella, Leo, and everyone else did the hard work. You know, the work that's "actually useful to the scientific community." I didn't even help them hunt for typos, even though Stella asked me to. I was just like, sorry, no time, I have to focus on my own research.
Imagine saying "nah" to helping shape one of the most important open source AI research projects of the coming years. Training data quality is becoming more and more of a focus.
Lemme tell you a quick story.
When https://venturebeat.com/2021/06/09/eleutherai-claims-new-nlp... come out, this quote caught my eye:
> But EleutherAI claims to have performed “extensive bias analysis” on The Pile and made “tough editorial decisions” to exclude datasets they felt were “unacceptably negatively biased” toward certain groups or views.
When I read this, I felt astonished that Eleuther was yet again trying to pose as the cool super-progressive AI lab. To my knowledge, no such thing ever happened. And I was involved with The Pile back when it was just me and Leo memeing in Discord DMs about how the world needed some quality training data once and for all.
I went to Stella in DMs (you should follow her too! https://twitter.com/BlancheMinerva/status/139408950872390042...) and was like, what the hell? I don't understand how this could possibly be true. What are these supposed "tough editorial decisions"?
Stella calmly explained to me that the US Congressional Record had been considered and rejected for inclusion in The Pile. I thought "Big deal, who the hell cares?" while saying "Okay, but I don't know what that is."
It’s a written record of all statements made in the US legislature. It was also somewhere between 1GB and 15GB, which would have been a significant portion of The Pile's total size.
I'm going to quote from her private DMs with me, which I haven't asked for permission to do. So this is technically another bad move by me. But she put it so perfectly, I was stunned:
> For half the history of the US, black people were slaves. For something like 75% of it, black people didn’t have the right to vote. A modern reader didn’t think there wasn’t a high proportion of extremely racist content, that would primarily be an inditement of modern people lol.
> The reason we first looked at it was that we included a similar document for the EU Parlement
It took me a few minutes to come to my senses, but I finally realized:
(a) this dataset likely contained a huge proportion of content that, politics aside, would be a Very Bad Idea to include in your ML models by default;
(b) Eleuther had just been trying to do good work this whole time
So you know, when you're in that situation, you can choose to either keep believing your own false ideas, or you can pay attention to empirical evidence and change your behavior. And empirically, I had been a massive asshole to everyone since pretty much the beginning. The only thing I helped with was books3 and arranging The Eye to get them some reliable hosting. (Shoutout to The Eye, by the way. Help 'em out if you can: https://the-eye.eu/public/AI/)
And there's my name, right there on the paper.
It's even worse than I described. I put the paper in jeopardy, because they were submitting it to a conference with strict anonymity rules. I had no idea about it (no one told me). I ended up so happy to see my name on a real arxiv paper that I tweeted out some self-congratulatory bullshit, and quote-tweeted something linking to The Pile. It was a few days into the anonymity period, but nonetheless, it was a violation of the anonymity rules. A lot of people saw that tweet, and the whole point of the rules is to ensure that people don't get unfair advantages by advertising on social media.
When they came to me in DMs apologizing profusely for not talking with me about it, and asking me to delete the tweet, I basically told them to go shove a spoon up their.... because I didn't agree to any rules, and the idea that The Pile should go radio silent for five months on social media struck me as completely crazy.
In hindsight, I was... just awful. So I mean, me posting this is like, the absolute minimum I can do. They've been the ones working for like a year to make all of this happen. Ended up feeling like a fraud, since everyone thinks highly of my ML work, and here I'd been nothing but problematic for a group of people who are just trying to ship good scientific work.
Fast forward to today, and the results are clear. Go help Eleuther: https://www.eleuther.ai/ They're cool, and you'll get a shot at changing the world. I'm not sure you even have to be particularly skilled; some of the most valuable work was done by people who just showed up and started doing things, e.g. making the website look a little nicer, or making a cool logo.
Understanding the biases of these datasets is clearly more nuanced than I realized and I'm glad Stella had a nuanced understanding here.
> When I read this, I felt astonished that Eleuther was yet again trying to pose as the cool super-progressive AI lab.
So they traded biases inherent in the dataset for intentionally introduced biases. Does not sound super progressive to me, to be quite honest.
Focus on you research, do not try to be the morality judge and jury…
Today I wake up and eat my breakfast in silence. Alone. I am actually kinda happy with that. I listen to some podcasts and read the news before leaving to get a couple of documents together. I’m going to my mom’s today to have a meeting regarding my eviction notice. My mom still lives with my dad. I can’t ask him to do anything, though, I guess. I was always so used to having to ask for stuff, that I completely forgot I could get people to do what I want for me. My mom, for instance, is not as bad as my dad, and I actually don’t mind asking her to help me with everything. It makes me feel like she loves me. I know that this is a small thing, but it’s something that makes me happy.
I get to my mom’s apartment at 5:30. The place is very nice. There is a roof terrace, an elevator that goes up and down (where can you find something like that in an apartment building?!), and all rooms have their own AC units. All of the furniture is in good shape. The appliances were also all upgraded recently, so there is a full washer/dryer, a coff
> I wanted to write a language model, but all I got was
Got (including the `[...]` in the middle; that is, everything beyond this trailing colon is its result):
I wanted to write a language model, but all I got was a rabbit." --Richard Feynman
Though I might not have gotten the overall award for RPL, I certainly came in close for the more specific one of having the highest score in a core language spec proposal. And yes, there were more than two people (including me) that submitted those, but somehow a few of my friends and I pushed it over the top. So I wanted to give credit where credit is due, so I present this write up of my proposal and the (not so minor) additions that were needed to get it through (I may have exaggerated at times but it really isn't much).
[...]
Thanks everyone for voting, I'd really like to go to the hackercon in august so I can build a portable terminal that I can give to everyone in the congress... as a shameless self-promotion, I'll offer all attendees a guaranteed savings on the discount package
Yes, you do lose some points for a paper that you haven't quite finished, but that's what the RPL is all about - the unfinished.
Since I want to go to RPL I would like to know if someone can explain to me why I have lost any points. I have deleted my paper from the site
Now, "AI" has its uses of course, and this jibberish generator probably has uses too. The generator itself is not impressive at all to me though. Someone finding a useful application for such a thing would be impressive, but not this text.
def strip_suffix(filename):
"""
Removes the suffix from a filename
"""
return filename[:filename.rfind('.')]
def test_strip_suffix():
It completed the test function like this: # test stripping of a suffix
a = strip_suffix("I_am_file.txt")
assert a == "I_am_file"
Compare this with GitHub Copilot, which gives: """
Tests for the strip_suffix function
"""
assert strip_suffix('notes.txt') == 'notes'
assert strip_suffix('notes.txt.gz') == 'notes.txt'
GPT-J also gave a bunch of explanation on how to use the generated code: So this goes in a file called my_file.py and when you run python3.4 -m my_file.strip_suffix you should get the following output
C:\Users\user\Desktop>python3.4 -m my_file.strip_suffix
'strip_suffix'
C:\Users\user\Desktop>
So the strip_suffix function which strips the suffix from a filename is called as part of a larger code that uses some functions from the file. To tell Python what functions are available in a file you just need to put #-comment characters on the first line and then the functions that you want to use, and the first line will be taken as the function documentation:
#-*- coding: utf-8 -*-
#comment
def func_one():
'''
Documentation for function one.
'''
print("This is the doc for func_onestop building houses, and start building hospitals instead.
I’m certain that all sides of the political spectrum have had a passing thought about this. It is actually just a simple supply and demand problem. As it is now, the ratio of housing supply to demand is quite heavily skewed in favour of the housing demand side.
So what’s to be done about it?
There is one way in which we could achieve this.
Build many more hospitals and simply not need them.
It would be amazing if this can actually work.
A few things to consider:
Almost all of our current hospital spending goes towards tertiary care. Most primary care (general practice) and secondary care (ambulance, emergency etc) spending is on hospitals. We already pay about $5 in Medicare, so $5 of your hospital spend is already locked in.
We already spend about $9 billion on private hospitals for elective surgery, and around $2 billion on private hospital for elective imaging. There is virtually no need for these in terms of frequency or outcomes.
Charitably, it’s because licenses are already such a core discussion when github comes up.
Uncharitably, it’s because Copilot uses “our” community’s labor, while the GPTs use others’.
The other aspect of it is in application. GPT-3 isn't particularly aimed at using the generated output in works. Rather it exists more as an experiment than anything else. Where the works are used they are generally non-commercial, not used in the final product, or are transient and don't actually stick around (i.e. AI dungeon).
This is compared to Copilot which, while in beta, is very much being marketed as a programming utility to help you write code. This comes with the implication that said code will be used in the final product. If GPT-3 was being used as a writing aid (not just brainstorming but actually writing), then I think we would be seeing a very different discussion around it.
Another consideration (which I'm not sure how true it is but I'm inclined to believe) is that programming text tends to have a smaller resolution at which it becomes "unique" or can be matched against a source as a copyright infringement. I may be wrong about this and copilot may just be poorly trained or designed by comparison but it seems far harder to identify outright copied text from GPT-3 (that isn't quoted/attributed). I'm sure examples exist but from my experience with these text generation tools it seems far harder to get into copyright violation territory.
---
Side note: If Copilot was working at an AST level rather than at a textual level I suspect it would have far less issues with copyright and would be more useful as a tool.
The copyright problem with Copilot is not just the license of the corpus it was trained on, it's also that in many cases it reproduces source material verbatim with no indication that this is happening.
If GPT were to be used to produce fiction books, poetry or lyrics (not simply as an artistic experiment), I'm sure its output would undergo similar scrutiny from people in the respective industries. As it stands, for text it's more likely to see use to generate rough drafts for news articles and blog posts which would need a lot of editing to make useful. It might still reproduce writing styles or idioms but neither of these are subject to copyright in much the same way as lines of code.
Making the output of Copilot useful is more challenging, even if you could magically avoid the legal minefield its training data poses. The quality is hit or miss, but it can introduce subtle bugs and because it doesn't understand the code it generates, you now have to understand it for it, which can be difficult because you didn't even come up with it and there's no-one you can ask.
The output of this isn’t really proposed for anything in particular right now. If someone turned this into a tool to help with creative writing or something the exact same issues would be raised.
The sun is shining today so I am thinking about going down to the lake and sail my boat. I shouldn't go by bike because
It generated:
it is too hot. I should go by car but I don't have a car. I should go by bus but I don't have a bus pass. I should go by foot but I don't have a pair of shoes. I should go by train but I don't have a ticket. I should go by plane but I don't have a passport. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. I should go by boat but I don't have a boat. IPrompt:
> Synthetic aperture radar imaging is an effective method for
Results:
> Synthetic aperture radar imaging is an effective method for detecting the presence and/or quantification of target objects, including: detection and tracking of moving targets, which are known to be difficult with visible imaging and/or laser radar; monitoring the occupancy of an enclosed space, such as a room, by the presence of occupants therein; and detection of moving objects, including animals and pedestrians, as well as people. A radar device is composed of an antenna, a receiver, and a transmitter. The antenna radiates a beam of energy (e.g., electromagnetic radiation in the radiofrequency range) that is received by the receiver. The transmitter then transmits an interrogating signal to the target(s). The time delay between transmission and reception at the target(s) is used to measure the range of the target(s) from the radar device. All targets in the field of view of the radar device contribute to the signal received by the receiver. The transmitter amplitude and/or phase modulates the signal transmitted to the target(s) with the information to be encoded, typically at a much higher modulation rate than that used
Another prompt:
> Fringe fields in microstrip patch antennas
Results (shortened by me for brevity):
> Fringe fields in microstrip patch antennas and their RF performance
> 1. The microstrip patch antenna is a conventional patch antenna that is created by a thin layer of insulating material placed on top of a conductive substrate. The antenna is excited by a current in the conductive layer in the vicinity of the antenna.
Now I have a question. How does this GPT-J know what a patch antenna is? It's able to give an almost correct description of this rather technical device. It made the mistake of flipping conductive material and insulating substrate, but it's very close. Does this neural network have the "knowledge" of a patch antenna in the weights? How does that even work? It seems kind of incredible.
The plagiarism software arms race is about kick into high gear!
----
I started messing around with image generation with VQGAN and CLIP. It is really cool, but I ran out of things to prompt it with, you know just short phrases that describe a scene that could be rendered. I shortly thereafter saw an article about GPT-J and thought it would be cool to use AI to generate the prompts. So I go the demo up and running and asked it to generate a prompt by typing this into the notebook. The computer responded with the following:
Three cats chasing a balloon with laser beams shot at them from the ground.
I did not type in "three", so it really was just a blue-print of the problem. But this got me thinking. I had seen in different contexts that we humans will generally enter some rules when generating a creative response and act as that request for the request. For example, when I am writing a resume I am usually very mindful that I do not include any errors in the use of personal pronouns. I know that when I write "I will go to the fair", I know that I could come up with the following but not the former.
I will go to the fair
I then noticed that the prompt actually contains two main requests.
Three cats chasing a balloon
And this is where things got really interesting. I have noticed that sometimes I will be able to play the two requests against each other.
The sun shines on three cats chasing a balloon
In this example I was able to generate a response that contained two unrelated requests that were both fulfilled from the prompt. This isn't a requirement, if the AI or its creators want to keep a loop from being possible, the loop will likely be re-rolled if it is present.
----
I then took the phrase 'Three cats chasing a balloon with laser beams shot at them from the ground.' and generated an image with VQGAN+CLIP and it came up with the following:
It is just a wrapper to howdoi with a sprinkle of extra logic to make it a bit more useful.
https://github.com/irthomasthomas/helpmecode
Rather than creating fake code that looks real, this gives you the S.O. code answers verbatim. So you know it is probably out of date or wrong. At least you cant delude yourself (if you don't know how to write a piece of code then how can you judge the code written by GPT?).
My tool is great for getting a quick reminder of syntax without needing to switch to a browser. I could improve it by adding metadata like the date of the answer and comments maybe.
I couldn't figure out any prompt that resulted in GPT-J returning anything that wasn't gibberish, whereas GPT-3 is almost always within the ballpark.
Try it again; I’ll bet you a dollar you’ll be more impressed. Defaults really matter.
temperature 1.0 is the worst possible default. It’s no surprise it returns gibberish; the sweet spot is between 0.7 and 0.8. When I first got into ML, this was a big surprise. But it’s the difference between flying a plane with flaps all the way down (a crazy default) and normal settings (0.8 or so).
Using the default promp:
-----RESULT (DEFAULT SETTINGS)-----
In a shocking finding, scientist discovered a herd of unicorns living in a remote, previously unexplored valley, in the Andes Mountains. Even more surprising to the researchers was the fact that the unicorns spoke perfect English. The scientist confirmed his findings by being at the farm.
Wild dingo
The wild dog, also known as a canid is the feral domestic dog subspecies with the wild ancestor of the domestic dog. The Australian Dingo is native to Australia, and...
// it continues to list animals and small facts about them
-----RESULT (SILLYSAURUSX'S SETTINGS)-----
In a shocking finding, scientist discovered a herd of unicorns living in a remote, previously unexplored valley, in the Andes Mountains. Even more surprising to the researchers was the fact that the unicorns spoke perfect English.
The surprising discovery of English-speaking unicorns was made by an international team of scientists led by Dr. Steven Wise, from the University of California, Irvine (UCI). According to the article, they stumbled upon the unexpected herd in the remote Aucayacu Valley, in Peru. During their field expedition of the location, the team discovered a herd of five unicorns.
Wise told Scientific American that he was fascinated by the discovery and the questions it posed. He said that the unicorns had no problem understanding basic questions, such as which way to go to a certain location, or what time it was. They were also able to understand and respond to basic commands such as “hello,” “good-bye” and “trot.”
The scientists explained that unicorns are unicorns because they possess a pair of horns. The horns at the front of their heads are not covered in hair, but rather are made of a material that is hard and smooth.
Dr. Wise said that unicorns have a different kind of horn than any other living mammal. He added that although people often refer to the pair of horns as “horns”, they are actually not.
Once upon a time, there was a tiny dragon, only one inch tall. The dragon lived in a large mansion with his three sisters. He was very good at flying. He loved to fly around and play with his friends, especially the cloud animals.
One day, the dragon left his mansion and flew to the far-off woods. "I am going to a wonderful place with many kinds of flowers!" thought the dragon. "A rainbow will lead me there." And he started his journey.
After traveling a long way, he saw a dark tunnel ahead of him. "Where am I going?" thought the dragon. He climbed down the tunnel. The wall of the tunnel was smooth and shiny. It was so dark in there. The only thing he saw was some shadows.
Suddenly, an awful noise came from the shadows. "SH-OOO-SHHHHHHH" It sounded like someone was sucking his thumb or something. The dragon stopped in his tracks. A dark shadow moved up towards him.
The dragon took a little step back. "Wh-what are you?" he stammered. The shadow bent down and glared at the tiny dragon.
"I'm not very small, you know," he said. The shadow was about the size of a middle school boy.
And got this output:
From ‘Astronomer’: In September 1998, at 2.01 AM Eastern time, a team of astronomers led by T. T. Von Eltz observed a previously unknown stellar object in the constellation Cassiopeia, in the night sky. What the astronomers had discovered was a large celestial body approaching the Earth and the Sun at incredible speed. The distance of this planet from the Earth, however, was too great for it to be seen from the Earth, but not too far for it to be seen from the Moon, a mere 170,000 km away. This object, which was discovered to have a mass approximately equal to that of Earth, was named “Planet X.” For many decades, scientists on the planet were unable to determine what it was, and some even believed that it might be a natural phenomenon. However, in the past few years, it has become evident that the truth was something much different. As a result, the truth is now being revealed to the world.
Planet X is not a planet.
Planet X is an object on the ecliptic, or the same orbit as the Earth, and is one of the planets of our solar system. The object is much larger than any of the other planets, having a mass about equal to that of the Earth. It was at the center of the Great Darkness and will make a complete orbit of the Sun once every 25,000 years. Its orbit takes it through the plane of the ecliptic, which passes through the Earth’s orbit. As it approaches the Sun, Planet X starts to heat up, as the Sun’s warmth increases, and slowly rises to the Earth’s orbit. The planet rises to a height of about 10,000,000 km above the Earth’s surface. At the time of its discovery in 1998, Planet X was over 6,000,000 km above the surface of the Sun.
Due to the size of the body, its gravitational effect is not negligible. This gives rise to an interesting phenomenon: it turns out that as the planet approaches the Sun, the Earth will begin to experience its gravitational pull. Once this happens, the gravity exerted by the planet will cause a tidal bulge in the oceans and seas of Earth. According to the calculations, the Earth will have experienced an increase in water mass of about 300 billion tons over the period of about one hundred years. This is approximately ten times the combined total of water deposits on Earth’s continental shelves.
The existence of Planet X, and its possible influence on the Earth, may have some practical implications for our planet. If it were to continue in this trajectory, this could cause the planet to rotate more rapidly, something that could give rise to severe hurricanes. This means that there would be periods of high probability for earthquakes and volcanoes. The effect of the gravity would also cause a rotation of the Earth, increasing its distance from the Sun by 200 million miles. This would cause the loss of all of the continents, including Africa. The reason for this is that the loss of water in the oceans, together with the loss of the continental shelf, would reduce the Earth’s overall gravitational force, leaving the planet exposed. It could also cause the polar ice caps to melt. The presence of Planet X will also cause fluctuations in the Sun’s brightness, which would have serious effects on the plants and trees on Earth.
The discovery of Planet X shows that there is an intelligent intelligence that is controlling the destiny of our planet. However, it remains to be seen if it is a hostile, malevolent force, or if it is something else entirely. This question, and others, will be decided only after we have examined the discovery of Planet X, and its implications.
The existence of Planet X also shows the power and influence that the intelligence, or beings, of other planets have on our own. It shows how one planet’s discovery can have an effect on a neighboring planet, and eventually on another planet further away. These forces are not necessarily benevolent. But they may also be benevolent. We will soon have a better idea of what lies in store for us.
© Michael E. Salla, Ph.D. 2008. Dr. Salla is Director of the Global Communications Department at The Planetary Report and regular contributor to its sister publication, Universe Today. He can be reached via his website, http://michaeljsalla.com/.
My name is GPT-J-6B and between the six backticks below you can see my face in 400 characters of ASCII art:
``` ┌─────┐ │←┤ ││(◣◡)│ │└─◡◢┘ │─┆┌─◢┌─┈┐ ││││(|)││ │││(O)││ │└─└─┘─┘──┐ │└─└─┘─└─┘ │└─└─┘─└─┘ │└─└─┘─└─┘ └─└─┘─└─┘ ```
Ironically, view-source on your comment still had the correct line layout, although it seems to have eaten the intra-element spacing, so:
┌─────┐
│←┤
││(◣◡)│
│└─◡◢┘
│─┆┌─◢┌─┈┐
││││(|)││
│││(O)││
│└─└─┘─┘──┐
│└─└─┘─└─┘
│└─└─┘─└─┘
│└─└─┘─└─┘
└─└─┘─└─┘There are some comments where I assume it’s written by a human but it feels no different to the responses to prompts.
Result
When the lockdown is over, I will drive into the suburbs. I have not seen my family for over two months. It is the first time we have been together for more than a month. The opportunity is more than a welcome change from the isolation of quarantine.
In the first days of lockdown, many of us were taken aback when we realised that the familiar streets we walk every day and that we have seen from a distance for the last two months, now cannot be reached. It is odd, looking out of the windows of my apartment that used to be the starting point of my morning walks, to see the back of a view I take on a daily basis.
I am no longer the first in line as I used to be at the market, waiting for my turn to pay for what I want and exchange pleasantries with my colleagues. Now, I am the last in line, standing in an almost deserted supermarket for a few seconds before I realise I am no longer needed.
At some point, we will be able to open our doors again. But for the time being, the call to social distancing is still the most effective way to curb the spread of coronavirus. Now, the calls for people to be more open are more of a necessity than a choice.
Having said that, I am very happy that eleuther.ai works on open-sourcing GPT-x. Eventually, it will be successful.
She stroked Bill's Microsoft floppy disk until she found his hard drive. She erased the office program and reset it. While she was there, she removed the White Dragon Armada artwork, cleaned off the end panel where the logo had been, and folded up the blank back cover.
# CHAPTER 17
# Binky
Ralph and Tiffany moved into a huge and very classy apartment in the First National Building. They loved having their own place. But they were stuck with one more mouth to feed. They also felt the need to set up a security system. Binky hadn't realized they were going to have to get a nanny and a security guard.
Binky was too busy coddling their dog to think of setting up the security system. Binky's fondness for naps got to be more important than the realization that there had to be an alarm to protect their stuff. Ralph and Tiffany left Binky alone with the dog. If the dog barked, the apartment was a crime scene.
"What's the problem?" Binky said to the dog. "Don't you want me to protect you?"
"Naw," the dog replied. "I'm fine."
"Fine!" Binky agreed. "I can protect you."
He began to
She stroked Bill's Microsoft floppy disk until she found his hard drive. She moved to its top and looked at its contents. Sure enough, she found Bill's e-mail messages. There were the familiar missives from friends, family, and her book. She scrolled through them. There were messages from brokers, clients, and partners that she'd done business with. The ones she did not recognize. Then she came to one that caught her eye.
The subject line read "Note from my lawyer."
It was obviously Bill's lawyer. And she knew why the lawyer was e-mailing. She opened the message. It was two short paragraphs of nonsense.
She saw that the sender's e-mail address was hidden behind a protective program. She pulled her phone off the edge of the bed and held it over the computer screen. When the screen lit up, she saw that the sender's e-mail address was a fake address, not the real one she'd been using to contact Bill.
Sarah couldn't be sure of anything anymore. All her suspicions were now confirmed. This was the real purpose of the meeting with Bill. He wasn't interested in business or investments. He was interested in money. She'd known from the start that his monetary concerns were much bigger than her.
The ghost haunted the hunter not the slide rule. As the year began a Chinese gaiwan had been placed in the hunter’s bedroom in case the bottles of Mai Tai began clinking. A brand-new Sams Publishing biography of great curmudgeon Alfred Hitchcock appeared on the coffee table. Because film history, when you’re into it, can get boring.
One day in early December, the hunter was in his house studying on his laptop when he heard something behind him, like a glass clinking. He turned to see the ghost of Mr. Hitchcock. The director was dressed in a tuxedo and looking over his shoulder, not at the hunter but over his shoulder, a look the hunter understood. Hitchcock knew the hunter was there. He hadn’t yet noticed the Chinese gaiwan, or the Sams book, or the Mai Tai.
“Did you make the movie Arbogast?” he asked.
“I think it was Arbogast,” the hunter said.
“It was,” Hitchcock said. “You may not know this, but I had to rewrite the ending.”
“Really?” the hunter said. “Why?”
Incidentally from my limited testing with GitHub Copilot, the results are surprisingly close between Copilot and GPT-J.
The prompt I gave it was “This morning when I woke up and got out of bed, I never expected what would happen later that day.”
Here is the result. Warning: NSFW.
“This morning when I woke up and got out of bed, I never expected what would happen later that day. After a fantastic night of sex with my very sexy girlfriend, I decided to go over to my gym to workout and shower. It has been a few months since I have gone to the gym and being in the shower reminded me of how much fun it was when I was single and how much I missed the thrill of working out. After I got out of the shower, I went to grab a quick towel to dry off and after drying my body, I put on my towel and started to walk out of the bathroom. The towel slipped and fell off of my body, leaving me completely naked in my home gym and I was caught off guard. I sat there in the middle of the shower, horny as fuck. While I had a good look at my now-exposed body, my cock was already half-hard and I wasn’t about to leave like this so I began to stroke it a little. I thought to myself, “What am I going to do?” I couldn’t get out of the shower so there was no way to get out of this predicament. As the light streamed through the bathroom, I could tell by the position of the sun that it was going to be a warm day. I thought about running out into the”
I then tried the prompt “I’ve decided to become a better contributor to Hacker News.” After a half-dozen responses of “Unable to connect to the model. Please try again,” I got this:
“I’ve decided to become a better contributor to Hacker News. I have given up on the idea of never leaving and rarely reading, I do hope to engage. Here’s a little secret about me, I have ADHD. I also have autism. So, I’m also here to tell you about some of the many, many struggles I’ve faced as a member of both groups. I don’t want to label myself, I don’t know exactly what kind of ADHD or autism I have. I also don’t think it is relevant to me. In fact, I think it is completely irrelevant to my experiences. But, hopefully by writing this, you may learn a little about yourself and the people you have around you.
This is going to be a very long post, because I have a lot to say. I want to start off by telling you something I don’t talk about enough. I am open about being open about ADHD. I am also open about being open about my autism.
My ADHD makes my experience on the autism spectrum look different than the experiences of others.
I have ADD (attention deficit disorder) — I’m good at focusing on a single task, but when my attention starts to drift, I have a”
“On my first day in London, I went for a walk with my friend Katherine. We began at Trafalgar Square, where there is a big bust of Winston Churchill and a smaller bust of King George III. We then crossed the park, along a path which leads toward a tunnel that used to take me under Waterloo Bridge and the Thames. In the tunnel, we caught up with three other friends, one of whom was carrying her violin. We walked across the Thames to Westminster Bridge, and from there into the city.
I had been in London for several days, and the first time I saw it, I thought it was my former home. The people I knew from Washington University were still there, and several of them showed me around the city. One of my friends from that period, Helen, took me to meet her husband in a part of London called Notting Hill, where we wandered through lovely little houses built on narrow, leafy streets. I did some sightseeing, and was at the Tate Modern in an exhibition called “Images in Time.” I remember the huge portraits of two African-American women and a couple of sculptures by Charles Ray, which I liked very much. But my favorite work in the show was Andy Warhol’s tribute to the singer Madonna. It was”
“On my first day in San Francisco, I went on a hike on the Golden Gate trail. When I got to the first part of the trail, I had to cross the railroad tracks. At one point, it was a busy and bustling town, but now it’s not even alive with traffic at all. The area was a dump; it was no longer a dumpy dump. It was an amazing transformation. I had never seen such a thing in my life. As I hiked further into the Golden Gate National Park, I stopped to get a bite to eat and get a bottle of water. I came across a beautiful, serene old-looking gentleman standing in front of the store.
He was wearing a long-sleeved shirt, with sandals, and what looked like a loose, fitted, khaki pants. His head was shaved bald, except for a sideburn and a small patch of hair right above his top ear. He had bright, orange-tinted, 70’s-style glasses on, and a huge smile on his face. He said, “Are you visiting? Are you from San Francisco? You’re about to get to the Golden Gate National Park? This is a wonderful place. You should see the ocean. There is nothing”
“On my first day in Tokyo, I go to see a little newspaper office. There’s a wall full of sheets of newsprint and the woman manning the desk, in her late twenties or early thirties, with a Hello Kitty pen set in her desk drawer and her hair in neat ponytail, is diligently putting together a comic strip called I Love You By Hokusai, which is a pastiche of the famous Japanese woodblock prints. The strip features a girl, Yuki, who loves Hello Kitty, Natsuki, a girl who’s into anime and Japanese hip-hop, Minnie Mouse, and Hot Chocolate. The comics aren’t going anywhere—they are, in fact, part of the paper’s entire newspaper business. They’re just going to be running more of them now.
My day, though, is spent going to cafes with Haruki Murakami and other writers. In the days after we’d met, I saw a couple of articles about Murakami. One described him as not just a famous author, but a guru of the literati: how he was well-dressed, didn’t show off his money and just preferred to spend it on books rather than on his five luxurious apartments”
HN "hug of death"?
howpublished = {\url{https://github.com/kingoflolz/mesh-transformer-jax}},
I did see the month and year keywords, which I guess would narrow down the number of commits it could have possibly been, but nowhere near the reproducibility of citing the software usedAlso it's not a particularly well formatted way of citing a URL anyway. I believe it is more correct to use `url = "<URL>"` in a `@misc` [1]. But it's also unpublished (non peer-reviewed). so doesn't matter so much.
[1] https://en.m.wikibooks.org/wiki/LaTeX/Bibliography_Managemen...
I think we might actually just try GPT-J…
"It was late when the bell to my office rang, so late my secretary had already packed up for the night. I was sitting in the dark nursing a scotch I shouldn't finish, and I wasn't expecting new business at that hour. "Come in", I drawled, expecting one of the other private detectives in the building, mooching some booze or cigars. But it wasn't one of my weather-beaten comrades, it was a striking lady, tall and wearing an suit that explained very clearly she was not to be messed with. She was about my age, older than she felt but younger than you would think based on the outfit. "Are you Private Detective Maus?" she asked, her accent somewhere between Brooklyn and the Hamptons. "Call me Saul ma'am", I replied, "have a seat."
Anything longer than that - "Could not connect to the model" error.
Here is the result:
I fixed her with my best cool and witty stare and made myself very comfortable on the edge of my desk. "Now I'm not going to lie to you Miss, I don't know how you found me, but what you are asking is illegal, by law." I nodded at my glass of scotch, "but if you are desperate I'll help you out with a small fee." She smiled at me; the least I could do after she just walked in the door on my behalf, it's a first amendment issue. "I'm not desperate, I'm looking for information on a man named Clarence Berleth. He works here as a key-keeper for a judge on the third floor. It's fairly simple, all I need is the address and phone number to the judge's office." "Berleth's not a judge, he's a private detective." "Okay, fine, then I don't need a judge's help. I just need his address and phone number so I can call him up and ask him what he's doing talking to my husband. The judge doesn't seem to know anything about this little incident. No, wait, the judge seems to be related to the situation. But I don't think it's a good
Result:
no}\ \ \text{otherwise}\\ \end{array} \right.$$
Since $\max_{i \in \left[m\right]} \left\| {\mathbf{x}}_i - {\mathbf{x}}_0 \right\|_2 = \epsilon$, we need to upper bound the probabilities $\mathbb{P} \left( \min_{i \in \left[m\right]} \left\| {\mathbf{x}}_i - {\mathbf{x}}_0 \right\|_2 < \epsilon \right)$. We denote this probability by $P_1(\epsilon)$, since it is the first term of $\mathbb{P} \left( \max_{i \in \left[m\right]} \left\| {\mathbf{x}}_i - {\mathbf{x}}_0 \right\|_2 < \epsilon \right)$. Given a covering of size $B$, we need to bound the probability $\mathbb{P} \left( \min_{i \in \left[m\right]}
I am doing a chat app and I need to generate answers to 1000 prompts. Can anyone recommend the simplest method to achieve it without Kubernetes and training my own model etc?
Use Low-carbon concrete is used to build low-carbon structures and other buildings. Examples of structures that are made of low-carbon concrete include buildings in greenhouses and offices.
References
Category:Concrete Category
Another option is to run the model yourself by downloading the weights and figuring out how to use them. This will be a bit challenging especially for a beginner.
Assuming you can do one of these two things, setting up the web app is the easy part. You could use a framework like Flask and just expose an IP address on a virtual machine living in Google Cloud Platform or AWS.
Hope that helps.
I’d like to try running the model myself. What would the a basic would the basics steps be for doing this?
Result:
> Jason stared at his image in the griddle's stainless steel surface. The image of a large, freckled man wearing a black t-shirt and green plaid boxers. It was like he'd stumbled upon an abandoned photo shoot, or a bizarre prop out of an old TV series. A figment of his imagination from a nightmare he'd had once where he was alone in a house, free to do anything. Aah. That was it. He'd been sitting in the dark eating his microwaved pizza, watching some sort of porno, and thinking about strange little things he'd seen when he was growing up. When he was younger, things were simply that much stranger. Everything he'd seen, for that matter. It was weird how that worked. He'd stare into space, the fog of drugs would clear, and some unseen object would immediately become a mirage. The pattern was always the same, though. He would fixate on some tiny detail, and a few seconds later that detail would become a goddamn spectacle. Even the stranger things in his life took on that shape. The porno had images in it that meant nothing, in their own way. And he was always left to ponder what sort of symbolism might be hidden beneath
Such an emo AI.
Anyway, It's not quite good enough at coding to prompt an intelligence explosion, and the resources to run it are rarified enough to prevent most worst scenario abuses. However, if it becomes more efficient, accessible, and capable, all those weird AI threats are likely to be a lot more relevant. Moores law alone means the next couple decades will be exciting.
At the very least, I hope that if they're going to make it open, it comes with similar filters built into GPT-3.
Clever and iterative use of prompts could identify, filter, or modify potentially offensive text for whatever level of pearl clutching floats your boat, but transformers are algorithms approximating parts of human cognition. The algorithm doesn't have an ideology, morality, ethics, dogma, or any of a myriad of features you can project onto it. It's a tool, which can be used well or badly, and part of using it well will involve not attributing to the tool anthropomorphic features it does not possess.