[-] sisyphean@programming.dev 6 points 3 years ago

BTW Satan is a very cool guy, follow him on Twitter: @s8n

[-] sisyphean@programming.dev 6 points 3 years ago

Lemmy does have karma, it is stored in the DB, and the API returns it. It just isn’t displayed on the UI.

[-] sisyphean@programming.dev 6 points 3 years ago

First, I'd like to thank @Ategon for their work on these icons and also for running this poll to determine what people who care about the issue want.

It's no secret that I vastly preferred the "All Unified" option - the coherent visual identity would not only help recognition across different instances, but it would also strengthen the community and the sense of belonging on this instance.

With this in mind, I find myself somewhat puzzled by the this remark in the post:

Community mods though have the final say in what their community icon looks like and can choose not to follow this result if they want

While the question of icons might seem minor (maybe even trivial), allowing this would set a precedent that undermines the effectiveness of such polls in the future. Everyone who cared about the issue had the opportunity to vote for an entire week, and the "All Unified" option won by an overwhelming majority.

If even one mod disregarded this result, it would run counter to the result of the poll, effectively making the end state undesirable for the supporters of any of the options: the icons wouldn't be "all unified", the "general unified" option wouldn't happen either because at least some language-specific communities would also have the unified icon, and obviously, "no unified style" voters would be dissatisfied too.

2
Understanding GPT tokenizers (simonwillison.net)
submitted 3 years ago* (last edited 3 years ago) by sisyphean@programming.dev to c/auai@programming.dev

This is an excellent overview of tokenization with many interesting examples. I also like Simon's small CLI tools; you can read about them at the end of the post.

As usual, I've asked GPT-4 to write a TL;DR and detailed notes for it.

Notice that it couldn't print the "davidjl" glitch token, and (probably because of its presence), the notes are also incomplete. At first I thought it was because the text of the article was longer than the context window, but the TL;DR contains details the notes don't so that probably wasn't the case.

I've still decided to copy the notes here because they are generally useful and also demonstrate this weird behavior.

TL;DR (by GPT-4 🤖)

The article discusses the concept of tokenization in large language models like GPT-3/4, LLaMA, and PaLM. These models convert text into tokens (integers) and predict the next tokens. The author explains how English words are usually assigned a single token, while non-English languages often have less efficient tokenization. The article also explores "glitch tokens," which exhibit unusual behavior, and the necessity of counting tokens to ensure OpenAI's models' token limit is not exceeded. The author introduces a Python library called tiktoken and a command-line tool called ttok for this purpose. Understanding tokens can help make sense of how GPT tools generate text.

Notes (by GPT-4 🤖)

Understanding GPT Tokenizers

  • Large language models like GPT-3/4, LLaMA, and PaLM operate in terms of tokens, which are integers representing text. They convert text into tokens and predict the next tokens.
  • OpenAI provides a Tokenizer tool for exploring how tokens work. The author has also built a tool as an Observable notebook.
  • The notebook can convert text to tokens, tokens to text, and run searches against the full token table.

Tokenization Examples

  • English words are usually assigned a single token. For example, "The" is token 464, " dog" is token 3290, and " eats" is token 25365.
  • Capitalization and leading spaces are important in tokenization. For instance, "The" with a capital T is token 464, but " the" with a leading space and a lowercase t is token 262.
  • Languages other than English often have less efficient tokenization. For example, the Spanish sentence "El perro come las manzanas" is encoded into seven tokens, while the English equivalent "The dog eats the apples" is encoded into five tokens.
  • Some languages may have single characters that encode to multiple tokens, such as certain Japanese characters.

Glitch Tokens and Token Counting

  • There are "glitch tokens" that exhibit unusual behavior. For example, token 23282—"djl"—is one such glitch token. It's speculated that this token refers to a Reddit user who posted incremented numbers hundreds of thousands of times, and this username ended up getting its own token in the training data.
  • OpenAI's models have a token limit, and it's sometimes necessary to count the number of tokens in a string before passing it to the API to ensure the limit is not exceeded. OpenAI provides a Python library called tiktoken for this purpose.
  • The author also introduces a command-line tool called ttok, which can count tokens in text and truncate text down to a specified number of tokens.

Token Generation

  • Understanding tokens can help make sense of how GPT tools generate text. For example, names not in the dictionary, like "Pelly", take multiple tokens, but "Captain Gulliver" outputs the token "Captain" as a single chunk.
0
238
This asshole fish (programming.dev)
339
GITar Hero (programming.dev)
19
TOML in Python (til.simonwillison.net)
1
submitted 3 years ago* (last edited 3 years ago) by sisyphean@programming.dev to c/auai@programming.dev

TL;DR (by GPT-4 🤖):

Prompt Engineering, or In-Context Prompting, is a method used to guide Language Models (LLMs) towards desired outcomes without changing the model weights. The article discusses various techniques such as basic prompting, instruction prompting, self-consistency sampling, Chain-of-Thought (CoT) prompting, automatic prompt design, augmented language models, retrieval, programming language, and external APIs. The effectiveness of these techniques can vary significantly among models, necessitating extensive experimentation and heuristic approaches. The article emphasizes the importance of selecting diverse and relevant examples, giving precise instructions, and using external tools to enhance the model's reasoning skills and knowledge base.

Notes (by GPT-4 🤖):

Prompt Engineering: An Overview

  • Introduction
    • Prompt Engineering, also known as In-Context Prompting, is a method to guide the behavior of Language Models (LLMs) towards desired outcomes without updating the model weights.
    • The effectiveness of prompt engineering methods can vary significantly among models, necessitating extensive experimentation and heuristic approaches.
    • This article focuses on prompt engineering for autoregressive language models, excluding Cloze tests, image generation, or multimodality models.
  • Basic Prompting
    • Zero-shot and few-shot learning are the two most basic approaches for prompting the model.
    • Zero-shot learning involves feeding the task text to the model and asking for results.
    • Few-shot learning presents a set of high-quality demonstrations, each consisting of both input and desired output, on the target task.
  • Tips for Example Selection and Ordering
    • Examples should be chosen that are semantically similar to the test example.
    • The selection of examples should be diverse, relevant to the test sample, and in random order to avoid biases.
  • Instruction Prompting
    • Instruction prompting involves giving the model direct instructions, which can be more token-efficient than few-shot learning.
    • Models like InstructGPT are fine-tuned with high-quality tuples of (task instruction, input, ground truth output) to better understand user intention and follow instructions.
  • Self-Consistency Sampling
    • Self-consistency sampling involves sampling multiple outputs and selecting the best one out of these candidates.
    • The criteria for selecting the best candidate can vary from task to task.
  • Chain-of-Thought (CoT) Prompting
    • CoT prompting generates a sequence of short sentences to describe reasoning logics step by step, leading to the final answer.
    • CoT prompting can be either few-shot or zero-shot.
  • Automatic Prompt Design
    • Automatic Prompt Design involves treating prompts as trainable parameters and optimizing them directly on the embedding space via gradient descent.
  • Augmented Language Models
    • Augmented Language Models are models that have been enhanced with reasoning skills and the ability to use external tools.
  • Retrieval
    • Retrieval involves completing tasks that require latest knowledge after the model pretraining time cutoff or internal/private knowledge base.
    • Many methods for Open Domain Question Answering depend on first doing retrieval over a knowledge base and then incorporating the retrieved content as part of the prompt.
  • Programming Language and External APIs
    • Some models generate programming language statements to resolve natural language reasoning problems, offloading the solution step to a runtime such as a Python interpreter.
    • Other models are augmented with text-to-text API calls, guiding the model to generate API call requests and append the returned result to the text sequence.
1

cross-posted from: https://programming.dev/post/222613

Although I prefer the Pro Git book, it's clear that different resources are helpful to different people. For those looking to get an understanding of Git, I've linked to Git for Beginners: Zero to Hero 🐙

The author of "Git for Beginners: Zero to Hero 🐙" posted the following on Reddit:

Hey there folks!

I've rewritten the git tutorial. I've used over the years whenever newbies at work and friends come to me with complex questions but lack the git basics to actually learn.

After discussing my git shortcuts and aliases elsewhere and over DMs it was suggested to me that I share it here.

I hope it helps even a couple of y'all looking to either refresh, jumpstart or get a good grasp of how common git concepts relate to one another !

It goes without saying, that any and all feedback is welcome and appreciated 👍

TL;DR: re-wrote a git tutorial that has helped friends and colleagues better grasp of git https://jdsalaro.com/blog/git-tutorial/

EDIT:

I've been a bit overwhelmed by the support and willingness to provide feedback, so I've enabled hypothes.is on https://jdsalaro.com for /u/NervousQuokka and anyone else wanting chime in. You can now highlight and comment snippets. ⚠️ Please join the feedback@jdsalaro group via this link https://hypothes.is/groups/BrRxenZW/feedback-jdsalaro so any highlights, comments, and notes are visible to me and stay nicely grouped. Using hypothes.is for this is an experiment for me, so let's see how it goes :)

https://old.reddit.com/r/learnprogramming/comments/14i14jv/rewrote_my_zero_to_hero_git_tutorial_and_was_told/

11

cross-posted from: https://programming.dev/post/216322

From the “About” section:

goblin.tools is a collection of small, simple, single-task tools, mostly designed to help neurodivergent people with tasks they find overwhelming or difficult.

Most tools will use AI technologies in the back-end to achieve their goals. Currently this includes OpenAI's models. As the tools and backend improve, the intent is to move to an open source alternative.

The AI models used are general purpose models, and so the accuracy of their output can vary. Nothing returned by any of the tools should be taken as a statement of truth, only guesswork. Please use your own knowledge and experience to judge whether the result you get is valid.

3

From the “About” section:

goblin.tools is a collection of small, simple, single-task tools, mostly designed to help neurodivergent people with tasks they find overwhelming or difficult.

Most tools will use AI technologies in the back-end to achieve their goals. Currently this includes OpenAI's models. As the tools and backend improve, the intent is to move to an open source alternative.

The AI models used are general purpose models, and so the accuracy of their output can vary. Nothing returned by any of the tools should be taken as a statement of truth, only guesswork. Please use your own knowledge and experience to judge whether the result you get is valid.

[-] sisyphean@programming.dev 5 points 3 years ago* (last edited 3 years ago)

Good humor is based on reality

258
Fixed (programming.dev)
0
submitted 3 years ago* (last edited 3 years ago) by sisyphean@programming.dev to c/auai@programming.dev

Original tweet:

https://twitter.com/goodside/status/1672121754880180224?s=46&t=OEG0fcSTxko2ppiL47BW1Q

Text:

If you put violence, erotica, etc. in your code Copilot just stops working and I happen to need violence, erotica, etc. in Jupyter for red teaming so I always have to make an evil.⁠py to sequester constants for import.

not wild about this. please LLMs i'm trying to help you

(screenshot of evil.py full of nasty things)

[-] sisyphean@programming.dev 6 points 3 years ago

They got gregnant

121
[-] sisyphean@programming.dev 5 points 3 years ago

We use Celsius like for everything else

[-] sisyphean@programming.dev 5 points 3 years ago

I'm also biased.

But:

  • Celsius is easy to understand, even for children: water freezes at 0°C, boils at 100°C.
  • It is understood by more people in the world.
  • If the US used Celsius, understanding scientific papers and data would be easier for common people.
  • In Celsius, the range of livable temperatures for humans (-20 to 40°C) still gives plenty of precision. Additionally, each step in the Celsius scale corresponds to a bigger change in "feel" of the temperature, which leads to a more intuitive understanding of temperature changes.
[-] sisyphean@programming.dev 5 points 3 years ago

Honestly lemmy/kbin already has enough users to be an interesting place. I wasted more time here in the last few days than I used to on reddit.

[-] sisyphean@programming.dev 6 points 3 years ago

This table is very useful, thanks! The most surprising thing about it is how few users an instance actually needs to become a good community. For example, my home instance programming.dev has only about 300 users and it is still very active. But even the 6000 users at lemmy.world are a drop in the ocean compared to Reddit’s user base.

[-] sisyphean@programming.dev 5 points 3 years ago

Yes, I’ve also experienced this. I called it “reminder inflation” but alarm fatigue is a much better term!

[-] sisyphean@programming.dev 5 points 3 years ago

I don't really like thinking about what to listen to, so I use di.fm (an internet radio for electronic music) and just enjoy the endless stream of music. Some of my favorite channels:

  • Electro Swing - my absolute favorite, energetic and fast but improves focus
  • LoFi Hip-Hop - like the popular YouTube mixes but better curated and higher-quality
  • Liquid DnB - this is the middle ground between relaxing LoFi and energetic "Matrix" style coding music

It was really hard to find music I enjoy but I can also concentrate while listening to it. These 3 channels have been the absolute best for me in this regard. I hope you will like them too.

view more: ‹ prev next ›

sisyphean

0 post score
0 comment score
joined 3 years ago
MODERATOR OF