Taking Building with the Claude API. Notes from today

  • Low temperature is more deterministic output (picking highest probability token) vs high temperature with more random output (distributes probability more evenly across all possible tokens) 
  • Pick different values based on temperature, even data extraction or content moderation needs low temp vs summarization and creative writing with constraints for medium temp and high temp for brainstorming, marketing content 
  • Example
def chat(messages, system=None, temperature=1.0):
    params = {
        "model": model,
        "max_tokens": 1000,
        "messages": messages,
        "temperature": temperature
    }
    if system:
        params["system"] = system
    message = client.messages.create(**params)
    return message.content[0].text

The Godmother of AI on jobs, robots & why world models are next | Dr. Fei-Fei Li 

  • “If you look at from written record thousands of years ago to now, humans just kept innovating ourselves and innovating our tools, and with that, we make lives better, we make work better, we build civilization, and I do believe AI is part of that.
  • So that’s where the optimism comes from. But I think every technology is a double-edged sword, and if we’re not doing the right thing as a species, as a society, as communities, as individuals, we can screw this up as well.”
  • “be able to interact in this world whether you are browsing and walking or picking objects up or changing things as well as to reason within this world, for example, if the person consuming, if the agent consuming this output of the world model is a robot, it should be able to plan its path and help to tidy the kitchen, for example.”
  • “So world model is a foundation that you can use to reason, to interact, and to create worlds.”
  • “I think world modeling and spatial intelligence is a key missing piece of embodied AI. I also think let’s not underestimate that humans are embodied agents and humans can be augmented by AI’s intelligence.”
  • “the bitter lessons everybody refers to is a paper written by Richard Sutton who won the Turing Award recently, and he does a lot of reinforcement learning.”
  • “And Richard has said, if you look at the history, especially the algorithmic development of AI, it turns out simpler model with a ton of data always win at the end of the day instead of the more complex model with less data.”
  • There will be the need to add supplementing or synthetic data to train for robots 
  • “ no technology should take away human dignity and the human dignity and agency should be at the heart of the development, the deployment, as well as the governance of every technology.”
  • Working on world models as foundation for robotics, eg. medical emergency example 

Re-reading The Second Machine Age and reading Empire of AI 

  • In re-reading The Second Machine Age – the trillion dollar question is if LLMs are a real General Purpose Technology
    • Most innovations are driven by people in different fields coming together, not experts in the field alone. Often it is an outsider that drives that jolt and makes the connections -> be that outsider
  • Technology development direction is driven by egos of individuals 
Posted in , ,

Leave a Reply