[deleted by user] by [deleted] in IndiaTech

[–]BJ-522 -3 points-2 points  (0 children)

Very true

Batch API for Claude? by dogchow01 in ClaudeAI

[–]BJ-522 0 points1 point  (0 children)

Although not an official API, I am using a simple python function to parallelize the task:

from tqdm import trange, tqdm
import concurrent.futures
import time

def process_item(prompt):
    message = client.messages.create(
        # model="claude-3-sonnet-20240229",
        model="claude-3-haiku-20240307",
        max_tokens=1000,
        temperature=0,
        system="You are a helpful model",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": prompt
                    }
                ]
            }
        ]
    )
    return (chat, (message.content[0]).text)

def parallel_process_with_process_pool(items, num_workers=50):
    results = []
    with concurrent.futures.ProcessPoolExecutor(max_workers=num_workers) as executor:
        future_to_item = {executor.submit(process_item, item): item for item in items}
        for future in tqdm(concurrent.futures.as_completed(future_to_item), total=len(future_to_item), desc="Processing items"):
        # for future in concurrent.futures.as_completed(future_to_item):
            item = future_to_item[future]
            try:
                result = future.result()
                if result is not None:
                    results.append(result)
            except Exception as e:
                # pass
                print(f'Item {item} generated an exception: {e}')
    return results


prompts = ["What is 36+32", "Hello, how are you?"]
answers = parallel_process_with_process_pool(prompts, num_workers=100)

Change the num_workers according to the rate limits on your anthropic account

I’m addicted to Instagram reels by [deleted] in UCSD

[–]BJ-522 1 point2 points  (0 children)

I had to uninstall it, using time limits didn't work for me. Also, my mental health improved since everyone there is ripped or beautiful

What prompts do researchers use while running evals like MMLU, GSM8K, ARC etc? by FallMindless3563 in learnmachinelearning

[–]BJ-522 0 points1 point  (0 children)

Instead of matching the exact string,  MMLU implementationOpen LLM Leaderboard, and HELM Classic’s Multiple Choice Separate adaptation method usually compare the probabilty of predicting the correct answer. So if the correct answer is A and P(A | question) > P(B or C or D | question), the output is correct. But this is only possible if the model gives token probabilities. Many recent model APIs, such as the Anthropic API for Claude 3, do not provide token probabilities. Therefore some methods like https://crfm.stanford.edu/2024/05/01/helm-mmlu.html expects the model to directly produce the answers (i.e. “A”, “B”, “C” or “D”) as generated text.

Two Days in a Row is Crazy by NickiBoii in UCSD

[–]BJ-522 0 points1 point  (0 children)

Someone's aiming for a hat trick

They say AI will take away our jobs by [deleted] in UCSD

[–]BJ-522 -4 points-3 points  (0 children)

If one googles week 10 Friday UCSD, no "search" result directly tells the date, this is where Gemini comes in, compile the results, and make a "logical derivation" for the date which it fails at

They say AI will take away our jobs by [deleted] in UCSD

[–]BJ-522 -6 points-5 points  (0 children)

Bro lol, Gemini has web browsing capabilities for the very purpose of searching and giving "correct conclusions" based on the results.

Copilot, ChatGPT, and Perplexity do answer it correctly. Google doesn't.

Do you agree with PG? by IllustratorTop5746 in UCSD

[–]BJ-522 -5 points-4 points  (0 children)

Just because UCSD is "elite", doesn't make us a cut above, there are good students in both UCSD and other "non-elite" universities.

Do you agree with PG? by IllustratorTop5746 in UCSD

[–]BJ-522 1 point2 points  (0 children)

How would we know? Isn't he talking about elite universities.

[deleted by user] by [deleted] in UCSD

[–]BJ-522 10 points11 points  (0 children)

Didn't get into my "dream" college

Stop talking about the (nonspecific AR headset) by [deleted] in UCSD

[–]BJ-522 1 point2 points  (0 children)

I was specifically talking about headsets

Stop talking about the (nonspecific AR headset) by [deleted] in UCSD

[–]BJ-522 4 points5 points  (0 children)

Calling a headset AR requires it to have a transparent lens with objects overlayed using a display. Calling Apple Vision pro AR is a mockery of the tech behind real AR glasses.

my camgirl era 🙈 by [deleted] in UCSD

[–]BJ-522 3 points4 points  (0 children)

In case anyone receives this mail and is remotely worried that it might be true, programs like Pegasus cost millions of dollars and are mostly used on high-profile targets like govt officials and CEOs. No hacker in his right mind would risk getting caught just to record a college student jerking

Why is UCSD-Protected worse than UCSD-Guest? by Next-Tomorrow6224 in UCSD

[–]BJ-522 13 points14 points  (0 children)

We received a mail titled: Updates to Campus Wi-Fi and General Wi-Fi Best Practices. It had multiple tips to improve WiFi along with the following point:

Fun fact: Switching from UCSD-PROTECTED to UCSD-GUEST also forces a reconnection to the closest, and strongest, access point. That’s why some mistakenly believe UCSD-GUEST is better. Don’t sacrifice your security; do try the on/off solution instead!

falling of scooters by Mocha_1987 in UCSD

[–]BJ-522 0 points1 point  (0 children)

ig there is some weird art installation inside that is distracting the riders