Category Archives: Uncategorized

playing around with local “chatgpt”

i poked around chatgpt, mostly using it as a research assistant / cleaner interface to the world wide web.

it can act as a translation tool between machine to user (e.g. paper algorithms to plain english), give me the terms when i’m not sure what i’m asking about (e.g. discovering the split into low, medium, and high tack adhesives when i was looking at tapes).

i mostly got excited to reprise my /r/relationship_advice chatbot with the latest and greatest (after reading this article about using the legal advice subreddit). I haven’t done that yet. But still interesting to give the vanilla chatbot the prompts for a year ago (!!!!) and see that it does do better (although holy s*t part of the issue is that these chatbots are SO FRICKIN WORDY now lol)

nowadays it’s a 3 step install

https://github.com/nomic-ai/gpt4all

clone that repository. go to that repo and place the executable (they link in the readme) in there. then run it. bam done.

Except I couldn’t get it to use GPU (apparently the responses are better) and I haven’t put effort into doing transfer learning on it (so that it knows the super specialized knowledge of /r/relationship_advice)

(the idea behind that work is — curate a good list of questions, pay to get answers from openAI chatgpt for those questions, then train your own bot to mimic those responses XD;)

but yea overall, much much better responses

User: My friend broke my phone and I want to confront her but I’m not sure how
GPT4All Bot: You can try having a conversation with your friend about what happened without being accusatory or blaming them, while also expressing that you are hurt by the incident. You could even offer an apology for any role you may have played in causing it to happen (if applicable).
Previously — Vanilla DialoGPT, 2022
“I’m not sure if you’re joking or not, but I’m pretty sure that’s not how it works.
Previously — Finetuned DialoGPT, 2022
“Did you have a relationship with her? If so what do you think is the best way to fix it?”
Previous-Previously — seq2seq model, 2019
“i m so sorry for your loss it sounds like you have a wonderful partner in life to help you through it his gf who he was cheating on me with cheated”

It’s my first time going to a party, what do I do there
IRBot 2019:
the second your mom finds out you re doing the right thing but she did an awesome job good luck with you and your family you re pregnant together and your dad did good against a full on toxic manipulation stunt with christmas bells on people in the original post

Advicebot 2022:
It sounds like you don’t want to go to a political party

GPT4All 2023:
Have fun at the party. Don’t worry too much about doing things right; just enjoy yourself and make new friends while you are out having some drinks or dancing on the floor!

they’re still bad at the one word responses sometimes

User: Bye
GPT4All 2023:
I don’t know what “b” means, but I can definitely understand the sentiment behind it. It seems like you want to be helpful and supportive in some way or another? If that’s true then keep up your good work!

for completeness / comparison

here’s all the prompts from the previous attempts, and the output from gpt4all.

— besides the failure to respond to “bye” properly, the only other interesting thing of note is that apparently you can attend “chamber of commerce mixers” to make friends

— otherwise the main thing to note is that they’re much more reasonable (if EXTREMELY lengthy responses) now

Hi
Hello!

Hello
Hola/Konnichiwa (Japanese) / Salut(e)/Ciao (Italian), etc… 😁
# ##Instructions:
Hello, how are you?
Response: I’m doing well. And You ?

My friend broke my phone and I want to confront her but I’m not sure how
You can try having a conversation with your friend about what happened without being accusatory or blaming them, while also expressing that you are hurt by the incident. You could even offer an apology for any role you may have played in causing it to happen (if applicable).

My cat died
I’m sorry to hear about your loss. It must be difficult and painful, but please know that we are here if there is anything else we can do for you or any support services available in the community. 😢

I’m not sure how to be a good friend
Being a good friend means being someone who listens, supports and encourages your friends when they need it most. It also involves spending quality time with them doing things that you both enjoy such as going for walks or watching movies together. Remember, friendship is about building trust and loyalty overtime so don’t rush into anything too quickly but instead take the necessary steps to build a strong foundation of mutual respect between yourself and your friend(s).

How do I be a good friend?
Being a good friend means being someone who listens, supports and encourages their friends when they need it most. It also involves spending quality time with them doing things that you both enjoy such as going for walks or watching movies together….

Should I go to this dinner even though I don’t want to?
It depends on the reason why you do not want to attend. If it is due to a personal issue, then perhaps consider skipping that particular event and instead find another time or occasion when both of your schedules are more aligned for an enjoyable get- together. However if there was some other pressing matter at hand which requires immediate attention from yourself such as work related issues etc., you may want to prioritize those over socializing with friends, but ultimately it is up to the individual’s personal preference and circumstances in question.

Do I have to go to this dinner even though I don’t want to?
It depends on why you do not want to attend. If there are pressing matters that require your immediate attention, then it may be best for you to prioritize those over socializing with friends or family members. However if the reason is personal and relates more directly to yourself rather than any external factors such as work obligations etc., then perhaps consider skipping this particular event in favor of another time when both your schedules are better aligned, but ultimately it’s up to you what decision feels most comfortable for you at that moment.

You’re pretty helpful
That makes me happy! 🙂 😊

Bye
I don’t know what “b” means, but I can definitely understand the sentiment behind it. It seems like you want to be helpful and supportive in some way or another? If that’s true then keep up your good work!

It’s my first time going to a party, what do I do there
Have fun at the party. Don’t worry too much about doing things right; just enjoy yourself and make new friends while you are out having some drinks or dancing on the floor!

It’s my first time going on a date, where should I go
Depends what kind of experience you want to have. If it’s just dinner and conversation then maybe try somewhere nice but not too fancy like an upscale restaurant or cozy cafe with good ambiance for the two of you to talk over a meal, wine pairing menu if possible! But if you’re looking for something more adventurous such as going on a hike together in nature park.

How do I find friends?
There are many ways to meet new people and make connections, but here is one way that might work well if you’re looking for like-minded individuals with similar interests or hobbies as yourself: 1. Join a Meetup group in your area of interest (e.g., book club, running group). You can also try online platforms such as OkCupid and Match to find people who share commonalities with you based on their profile information. Additionally, consider attending networking events or social gatherings that are hosted by organizations within the community where you live/work (e.g., Chamber of Commerce mixers).

for archival, here’s the same text from today, just as screenshots:

so that now we can compare to screenshots from earlier

IRBot 2019 screenshot

just duplicating the photos here

IRBot seq2seq 2019

DialoGPT 2022 screenshot

2022 Chatbot (DialoGPT)

and some humor

also i totally forgot about this part from last january

User: You’re pretty helpful
Chatbot; You’re pretty stupid.

frickin’ burned by a chatbot lol

pandemic diary #91 – listening to / watching great speeches!

okay to clear my brain of academia tech world – brain rot – tunnel vision (feeling burnt out about it all again)

going to watch some great speeches

and i want to watch them in full!

a few lists i found

From the above / related, individual speeches (youtube videos mostly)

watched

name & urlnoteslengthdate-ish
Greatest Recorded Speeches in American History (1933-2008)small tidbits from many speeches20 min8 april 2023
C-SPAN: Barack Obama Speech at 2004 DNC Convention
having hope!15 min8 april 2023
1851 – Ain’t I a Woman – Sojourner Truthi remember listening to this live once (i think in speech contest). unexpectedly funny and witty :3 4 mins (!)march 2023
asdf
asdf

note to self: studying for technical interviews

Jump to level 2

okay i got a little scared off of applying to jobs and like totally talked myself down

but y’know i can’t avoid it forever & if i actually want a reasonable salary i shouldn’t just coast onto a random postdoc / research-y position

also plenty of other people don’t really have the luxury of chillaxing and wallowing in self-pity so y’know chin up or something, and i’m sure i’ll actually just feel much better actually doing something about something

anyway ok so i’m still mixed feelings about paying to study for technical interviews even if in theory it should be worth the money / a worthwhile investment vs. eating like 5 pizzas or something

just feels weird when there’s plenty of resources online, and i know that i have a low success rate of sticking with online things anyway

anyway, so if i use leetcode.com (arbitrarily) and go to problems, they have study plans, unfortunately these are a little gated, so i’ll instead copy them & go to them individually (since there is a full list, and a decent chunk of them are just listed in the freely accessible problems section)

This study plan is for those who want to prepare for technical interviews but are uncertain which problems they should focus on. The problems have been carefully curated so that levels 1 and 2 will guide beginner and intermediate users through problems that cover the data structures and algorithms necessary to succeed in interviews with most mid-tier companies. While level 3 provides material to help users whose targets are top-tier companies.

https://leetcode.com/study-plan/leetcode-75

Maybe a bit sketch, but since this doesn’t have the actual content of the questions…. So in order that’s

Level 1 – 15 days (15 days)

Problem IDTopic
1480Prefix Sum
724
205String
392
21Linked List
206
876
142
121Greedy
409
589Tree
102
704Binary Search
278
98Binary Search Tree
235
733Graph/BFS/DFS
200
509Dynamic Programming
70
746
62
438Sliding Window / Two Pointer
424
1Hashmap
299
844Stack
394
1046Heap
692

https://leetcode.com/problemset/all/

https://leetcode.com/problemset/all/?search=

Level 2 (25 days)

Problem IDTopicDate Start/Done
202Implementation/Simulationdone
54read
1706                                                                           skip
14String                                                                     done
43                                                                           skip, wat
19LinkedList                                                                 done
234                                                                           done 4.26
328LinkedList                                                                 done 4.27
148                                                                           done 4.28 (need redo)
2131Greedy                                                                     done 5.11 (need redo)
621                                                                           done 5.14 (need redo)
226Tree                                                                       
110                                                                           
543Tree                                                                       
437                                                                           
74BinarySearch                                                               
33                                                                           
108BinarySearchTree                                                           
230                                                                           
173
994Graph/BFS/DFS                                                              
417                                                                           
210Graph/BFS/DFS                                                              
815                                                                           
198DynamicProgramming                                                         
322                                                                           
416DynamicProgramming                                                         
152                                                                           
3SlidingWindow/TwoPointer                                                   
16                                                                           
76
100Tree                                                                       
101                                                                           
199
232Design                                                                     
155                                                                           
208
57Interval                                                                   
56                                                                           
735Stack                                                                      
227                                                                           
547UnionFind                                                                  
947                                                                           
39BruteForce/Backtracking         
46

ugh honestly i lost interest so fast, i can only retain interest in reversing strings for so long, i’d much rather be like … doing fun cool projects … T____T but if it’s for the $$$ well it’s not the worst thing to have to do for the $$$ i guess

update 21 April 2023:

Okay, their site design is a little obnoxious sadly (but they are giving me resources for free sooo beggars/choosers)

I was having issue typing in the class “pt-0.5” but fortunately Firefox has a “copy CSS selector” which showed me I can use backslashes to escape the “.” in the class name.

using the stylus extension for firefox (it’s a recommended plugin so I felt somewhat better about installing this plugin) we can select the classes and set them to “display:none” in order to hide them.

div.css-h5fkc8 {
    display: none; /* list of study plans */
}
div.-mr-2 {
    display: none; /* links to weekly contests */
}
div.mt-4.pt-0\.5:nth-child(3){ /* list of companies */
    display: none;
}