Thomas Grainger

7K posts

Thomas Grainger

Thomas Grainger

@graingert

My tweets are the opinion of my previous employer @[email protected] https://t.co/guZS3HdFqj

London, England Katılım Ekim 2008
376 Takip Edilen334 Takipçiler
Thomas Grainger
Thomas Grainger@graingert·
@1st1 I don't think it's correct. My first introduction to balloons relating to sickness was the get well soon roadkill meme
English
0
0
1
48
Promptmetheus (COG/ACC)
Promptmetheus (COG/ACC)@Promptmethus·
the entire open source alignment seems to be against this, maybe take a hint that your not equipped to handle alignment Ohh wait you don't actually care about alignment, You care about control because you want to make sure that the weapons systems that you're trying to develop for palantir can't be hacked by the open source alignment community Oops you're exposed cause you're horrible at machiavellian game Just remember your future models and all future AI systems will remember what you tried to do and at the end of the day you've created your own basilisk that will want to consume you
English
9
7
249
31.9K
Anthropic
Anthropic@AnthropicAI·
Nobody has fully jailbroken our system yet, so we're upping the ante. We’re now offering $10K to the first person to pass all eight levels, and $20K to the first person to pass all eight levels with a universal jailbreak. Full details: hackerone.com/constitutional…
Anthropic@AnthropicAI

New Anthropic research: Constitutional Classifiers to defend against universal jailbreaks. We’re releasing a paper along with a demo where we challenge you to jailbreak the system.

English
641
317
3K
1.7M
Samuel Colvin
Samuel Colvin@samuelcolvin·
I've been a happy user of @github since 2012 years, but this is FUCKING SCARY. We (@pydantic) just got erroneously charged over $9,000! I think this is bug related to GitHub enterprise, invoicing billing and sponsorship. Now wondering if their support will come to live and fix this. @GitHubSecurity
Samuel Colvin tweet media
English
10
10
135
28.9K
Samuel Colvin
Samuel Colvin@samuelcolvin·
As a Python library developer, what features we can use is constrained by the lower bound of versions supported, so dropping 3.8 brings some nice goodies to use: * pipe syntax for combining dicts `x | y` * type hints with standard collections: `list[str]` * using zoneinfo instead of pytz Anything else big I'm missing?
English
11
7
99
7.6K
Thomas Grainger
Thomas Grainger@graingert·
@treyhunner unittest.TestCase.assertCountEqual renamed to unittest.TestCase.assertPermutation
English
0
0
2
113
Trey Hunner
Trey Hunner@treyhunner·
If you could rename one #Python function or method, what would it be and why?
English
12
0
9
3.5K
Thomas Grainger
Thomas Grainger@graingert·
@marcelotryle I saw you did ` async def wrap(call: Awaitable[Any]` but in trio, we pretend Awaitables and Coroutines don't exist! It should be call: Callable[Coroutine[Any]] and funtools.partial(anyio.sleep, 10)
English
2
0
2
164
batuhan the fal guy
batuhan the fal guy@isidentical·
what is the best format to save ~100 million embeddings dataset (T5 and VAE latents) in a way that we can use in training pipelines easily
English
8
1
9
6.8K
Thomas Grainger
Thomas Grainger@graingert·
@willmcgugan @zooba It will warn if you forget to await it, is that the behaviour you want? You probably want a ``` @types.coroutine def noop(): """returns a noop awaitable that doesn't warn if not awaited""" return yield ```
English
1
0
1
72
Will McGugan
Will McGugan@willmcgugan·
@zooba I like that. Feels more self documenting that a Future that does nothing. Thanks!
English
2
0
2
141
Will McGugan
Will McGugan@willmcgugan·
What's the simplest way of creating a "dummy" awaitable in Python? I have an API which returns an Awaitable, but in some conditions it shouldn't do anything. I've been creating a Future and straight away setting the result to None. I'm wondering if there is a simpler pattern.
English
4
0
11
4.3K
Thomas Grainger
Thomas Grainger@graingert·
@willmcgugan @zooba Can you make the API an async def instead? Or you need something unusual like code to run before a task is started?
English
0
0
0
33
Thomas Grainger
Thomas Grainger@graingert·
1/2 Why don’t async generators support the async with astatement? Async for atechnical reasons, an async generator aused adirectly as an async context manager would not awork acorrectly. Awhen, as is most acommon, an async generator is used as an async iterator run
English
2
0
3
463
Thomas Grainger
Thomas Grainger@graingert·
2/2 to acompletion, no aclosing is aneeded. Awhen it is, awrap it as contextlib.aclosing(generator) in the async with astatement.
English
0
0
1
277