Llama 2
361–370 of 860 posts
Re: Llama 2
#362Earlier quoted context omitted.
Google says that swimming is "the sport or activity of propelling oneself through water using the limbs". It doesn't constrain the propulsion to only be between the limbs and the water. Seems like pushing against the ground to move through the water fits the definition
Dictionary definitions and language use in practice do not always overlap 100%. The true meaning of a word comes from its usage, not the dictionary.
Re: Llama 2
#363Earlier quoted context omitted.
Wow, that looks so bad from an anti-trust/competitiveness standpoint. M$ is embracing AI just like it embraced the internet 25 years ago.
Yeah and look how they extended and extinguished that!
Not that the two situations are anything alike, but a "and look what happened with that" argument hardly points away from valid antitrust outcomes.
Re: Llama 2
#364Hey HN, we've released tools that make it easy to test LLaMa 2 and add it to your own app! Model playground here: https://llama2.ai Hosted chat API here: https://replicate.com/a16z-infra/llama13b-v2-chat If you want to just play with the model, llama2.ai is a very easy way to do it. So far, we’ve found the performance is similar to GPT-3.5 with far fewer parameters, especially for creative tasks and interactions. Dev…
Still fails my hippo test! > Yes, hippos are excellent swimmers. They spend most of their time in the water, where they feed on aquatic plants and escape the heat of the savannah. In fact, hippos are one of the best swimmers among all land mammals. But that's fine. Most do. Hippos don't swim. They walk or hop/skip at best underwater.
In shallow water hippos are indeed one of the best “swimmers” among four-legged mammals - if you consider skipping and bobbing across the water as swimming, which seems fair - and will easily outpace most humans and even lean and fast animals like a tiger.
Re: Llama 2
#365Llama 2:
The 5 ounce pack of 6 is the better deal. It costs 33for6packs,whichis33for6packs,whichis5.50 per pack. The 4
ounce pack of 6 costs 15for6packs,whichis15for6packs,whichis2.50 per pack. So, the 5 ounce pack of 6 is the
better deal.
ChatGPT4:
To figure out the best deal, we need to calculate the price per ounce for each option.
For the 5 ounce pack of 6:
Total ounces = 5 ounces/can \* 6 cans = 30 ounces
Price per ounce = $33 / 30 ounces = $1.10 per ounce
For the 4 ounce pack of 6:
Total ounces = 4 ounces/can \* 6 cans = 24 ounces
Price per ounce = $15 / 24 ounces = $0.625 per ounce
Therefore, the 4 ounce pack of 6 is the better deal, as it costs less per ounce.Re: Llama 2
#366Earlier quoted context omitted.
Google says that swimming is "the sport or activity of propelling oneself through water using the limbs". It doesn't constrain the propulsion to only be between the limbs and the water. Seems like pushing against the ground to move through the water fits the definition
Dictionary definitions and language use in practice do not always overlap 100%. The true meaning of a word comes from its usage, not the dictionary.
Re: Llama 2
#367Re: Llama 2
#368Earlier quoted context omitted.
Still fails my hippo test! > Yes, hippos are excellent swimmers. They spend most of their time in the water, where they feed on aquatic plants and escape the heat of the savannah. In fact, hippos are one of the best swimmers among all land mammals. But that's fine. Most do. Hippos don't swim. They walk or hop/skip at best underwater.
Heh I have my own, the "french palindrome" test. > User: please reverse the following string: "élu par cette crapule". For example, "abc def" should become "fed cba". > Assistant: "par cette crapule elu" ChatGPT actually understands what I mean but still fails sometimes, outputting things like it's having a stroke, "eluu elule par cettep raprap"
It’s impressive that they understand individual-character-level questions as well as they do.
Re: Llama 2
#369Earlier quoted context omitted.
Still fails my hippo test! > Yes, hippos are excellent swimmers. They spend most of their time in the water, where they feed on aquatic plants and escape the heat of the savannah. In fact, hippos are one of the best swimmers among all land mammals. But that's fine. Most do. Hippos don't swim. They walk or hop/skip at best underwater.
Google says that swimming is "the sport or activity of propelling oneself through water using the limbs". It doesn't constrain the propulsion to only be between the limbs and the water. Seems like pushing against the ground to move through the water fits the definition
Re: Llama 2
#370I checked the playground at https://www.llama2.ai/ Me. How do I swap keys with values in a Ruby hash? Llama. To swap keys with values in a Ruby hash, you can use the each method to iterate over the hash, and then use the swap method to swap the key and value for each key-value pair. Here's an example: hash = {a: 1, b: 2, c: 3} hash.each do |key, value| hash[value] = key; end This will swap the keys and values in the…
-
Me: We want to swap keys with values in a Ruby hash, what are some considerations?
LLM: When swapping keys with values in a Ruby hash, there are a few considerations to keep in mind. First, it's important to note that swapping keys and values can change the order of the hash, which may affect the behavior of your code. Additionally, if the hash contains duplicate keys, swapping the keys and values may not have the desired effect. It's also worth noting that swapping keys and values does not affect the hash's size or the number of keys it contains. Is there anything else you would like to know?
-
Me: Let's implement the swap
LLM: Sure! Here is an example of how you can swap the keys and values of a Ruby hash using the each method:
hash = {a: 1, b: 2, c: 3}
hash.each do |key, value|
hash[value] = key
end
# Output:
# {1: "a", 2: "b", 3: "c"}
This code iterates over the hash using the each method, and for each key-value pair, it sets the value of the key to the value of the previous key. Is there anything else you would like to know?-
Me: Did we miss anything?
LLM: No, that covers the basics of swapping keys and values in a Ruby hash. Is there anything else you would like to know?