Skip to content

Instantly share code, notes, and snippets.

@cswiger
cswiger / gist:65d6e3d468255adf87a04f507e267c4d
Last active March 3, 2024 18:03
AI LLM LHK_DPO_v1 blog completion
Prompt from blog http://lileks.com/bleats/archive/24/0224/45.html
Model: https://huggingface.co/HanNayeoniee/LHK_DPO_v1
<s> And so we end another week here. This one went by at a medium pace. Ticked all the boxes, fufilled all my deadlines.
Wrote three pieces for the paper. Did 25 pages of the AI book/ Worked out, from habit, but didn't stint. and upped a few
things to ensure future incremental accomplishments apparent to none. Wore my new blue glasses into the world; consumed
a plastic container of peanuts; enjoyed a bleak monochromatic Danish police procedural that spent two hours looking for
a severed arm in a deep harbor; listened to five songs by five artists I'd never known, favorited one; did two podcasts;
grocery shopped at four stores, securing the makings for next week's meals; made six meals for me and my wife; talked
with Daughter; collaborated with Astrid on our next iteration of the Peg Lynch project; took the dog to the vet.
@cswiger
cswiger / gist:0f174019f88a6a1be052e4f30057bf80
Created March 3, 2024 13:51
FantasyStory_EBL_LHK_DPO_v1.txt
model: https://huggingface.co/HanNayeoniee/LHK_DPO_v1
prompt: https://www.bulwer-lytton.com/2019
The High Gondonderil gazed on with horror as the Elgaborian legions marched at a single, pitiless pace into the once
peaceful streets of Sar-Andrada, the capital city of the kingdom of Xanthil, located in a fantasy universe which might
seem extremely confusing at present but which will doubtless make perfect sense to you, dear reader, once you realize
that, like most fantasy universes, it’s basically just Tolkien’s Middle-earth with different names for things.
Gordonderil was a wise old wizard, but he was not the greatest tactician. It was his disciple, the young but gifted
@cswiger
cswiger / PirateHawkis_EBL_LHK_DPO_v1.txt
Last active March 3, 2024 13:46
AI LLM Story writing from LHK_DPO_v1 in response to a prompt from the Edward Bulwer Lytton contest
Model: https://huggingface.co/HanNayeoniee/LHK_DPO_v1
Prompt: https://www.bulwer-lytton.com/2020
As he slowly shadowed the white Amazon Prime van down Midvale Drive in the Fresno suburbs on a sweltering July afternoon,
Nigel “Cutthroat” Hawkins thought back over his career —fastboating along the Somali coast, broadcasting at 50,000 watts
from international waters just off the Isle of Man, running half a million counterfeit “Bourne Identity” DVDs out of
Hong Kong—and had but a single question: is this really what piracy has come to?
To be sure, Nigel had long ago left behind the golden age of high-seas marauding, with its grandiloquent names and
dashing code of conduct. No more Captain Morgan Hawkins, fearsome terror of the Spanish Main. No more romantic
/* simple copy of can examples to filter on a specific ID and turn the light bits on
* this filters on the smart Car id 423:3FF and or's on the bits in the second byte:
* xx x3 where 01 is right, 02 is left
* which turn on the indicator lights for turn signal / emergency flasher on the dashboard instrument cluster
* doing this in compiled C as python3 is a bit slow for the fast can bus
* when the message id 423 is received, or the second byte with 0x03 and immediately re-send it - overwriting
* the original message
* this version has two length 50 for loops in the infinite loop to switch back and forth between the two lights
* that gives them about a second on each
*
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(infinigen) chuck@ml22:~/src/infinigen$ bash install.sh
Requirement already satisfied: gin-config>=0.5.0 in /home/chuck/anaconda3/envs/infinigen/lib/python3.10/site-packages (from -r ./requirements.txt (line 1)) (0.5.0)
Requirement already satisfied: tqdm in /home/chuck/.local/lib/python3.10/site-packages (from -r ./requirements.txt (line 2)) (4.65.0)
Requirement already satisfied: opencv-python in /home/chuck/anaconda3/envs/infinigen/lib/python3.10/site-packages (from -r ./requirements.txt (line 3)) (4.7.0.72)
Requirement already satisfied: matplotlib in /home/chuck/.local/lib/python3.10/site-packages (from -r ./requirements.txt (line 4)) (3.7.1)
Requirement already satisfied: scipy in /home/chuck/.local/lib/python3.10/site-packages (from -r ./requirements.txt (line 5)) (1.10.1)
Requirement already satisfied: fastcore in /home/chuck/anaconda3/envs/infinigen/lib/python3.10/site-packages (from -r ./requirements.txt (line 6)) (1.5.29)
Requirement already satisfied: imageio in /home/chuck/.local/lib/python3.10/s