ciflow/torchtitan/178948: [dynamo] Implement tp_as_number->nb_or slot
<p>Replace the ad-hoc isinstance cascades in call_or_/call_ior with a generic<br> binary-op dispatch that mirrors CPython's binary_op1 algorithm. Each VT<br> subclass that supports | now provides an nb_or_impl (and nb_ior_impl for |=)<br> slot method, following the pattern established by nb_index_impl and nb_int_impl.</p> <p>The generic infrastructure in object_protocol.py (binary_op1, binary_op,<br> binary_iop) handles forward/reverse dispatch and NotImplemented propagation.<br> Per-type slots are implemented on ConstantVariable (int/bool/frozenset/type),<br> SetVariable, ConstDictVariable, DictKeysVariable, SymNodeVariable,<br> UserDefinedClassVariable, UserDefinedObjectVariable, UserDefinedDictVariable,<br> UserDefinedSetVariable, and OpaqueObjectClassVariable.</p> <p>Authored with Clau
Replace the ad-hoc isinstance cascades in call_or_/call_ior with a generic binary-op dispatch that mirrors CPython's binary_op1 algorithm. Each VT subclass that supports | now provides an nb_or_impl (and nb_ior_impl for |=) slot method, following the pattern established by nb_index_impl and nb_int_impl._Replace the ad-hoc isinstance cascades in call_or_/call_ior with a generic binary-op dispatch that mirrors CPython's binary_op1 algorithm. Each VT subclass that supports | now provides an nb_or_impl (and nb_ior_impl for |=) slot method, following the pattern established by nb_index_impl and nb_int_impl._The generic infrastructure in object_protocol.py (binary_op1, binary_op, binary_iop) handles forward/reverse dispatch and NotImplemented propagation. Per-type slots are implemented on ConstantVariable (int/bool/frozenset/type), SetVariable, ConstDictVariable, DictKeysVariable, SymNodeVariable, UserDefinedClassVariable, UserDefinedObjectVariable, UserDefinedDictVariable, UserDefinedSetVariable, and OpaqueObjectClassVariable.
Authored with Claude.
[ghstack-poisoned]`
Assets 2
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
claude
How to Parse HL7 Messages with AI — Free MCP Server
TL;DR Install the DICOM/HL7/FHIR MCP Server ( pip install dicom-hl7-mcp ), add it to Claude Desktop, and paste any HL7 v2.x message. Claude parses every segment, names every field, looks up table values, and explains what the message means in context. Free. No license required. The server covers 15 HL7 segment types, 200+ DICOM tags, and 20+ HL7 code tables. The Problem If you've worked in healthcare IT, you've done this a thousand times: someone sends you a raw HL7 message and asks "what's wrong with this?" MSH|^~\ |RIS|RAD|EMR|HOSP|20240315140000||ORU^R01|MSG003|P|2.5.1 PID|1||MRN12345^^^HOSP^MR||DOE^JOHN||19650315|M OBR|1|ORD001|ACC001|CTABD^CT Abdomen^L|||20240315130000 OBX|1|FT| GDT^Report||FINDINGS: Normal CT abdomen.||||||F You squint at pipe-delimited fields, count positions, check

Does consciousness and suffering even matter: LLMs and moral relevance
(This is a light edit of a real-time conversation me and Victors had. The topic of consciousness and whether it was the right frame at all often came up when talking together, and we wanted to document all the frequent talking points we had about it, so we attempted in this conversation as best we could to cover all the different points we had before) On consciousness, suffering, and moral relevance Victors We've talked several times about consciousness—whether it matters, what the moral status of zombies or that of entities or systems that aren't conscious but potentially think in very complex ways might be, and how we should factor them into our decisions. I personally lean toward consciousness being important here, but I got the sense you don't necessarily agree, which makes this worth

LinkedIn is scanning your browser extensions: what AI developers need to know
LinkedIn is scanning your browser extensions: what AI developers need to know Yesterday, a story hit the top of Hacker News with 1,540 points: LinkedIn is actively scanning your installed browser extensions . For most developers, the reaction was visceral. Not surprised �� but still unsettled. Because this isn't just about LinkedIn. The pattern is everywhere Big Tech products have quietly expanded their data collection to include: Browser extension inventories (LinkedIn) Clipboard contents (TikTok, caught in 2020) Installed app lists (various mobile apps) Keystroke patterns (some "productivity" tools) The AI tools you use every day are no exception. What this means for your AI coding tools If you're using a cloud-based AI coding assistant, consider what telemetry it might collect: ✓ Your f
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Models

Arcee's new, open source Trinity-Large-Thinking is the rare, powerful U.S.-made AI model that enterprises can download and customize - VentureBeat
Arcee's new, open source Trinity-Large-Thinking is the rare, powerful U.S.-made AI model that enterprises can download and customize VentureBeat

Google strongly implies the existence of large Gemma 4 models
In the huggingface card: Increased Context Window – The small models feature a 128K context window, while the medium models support 256K. Small and medium... implying at least one large model! 124B confirmed :P submitted by /u/coder543 [link] [comments]



Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!