Astra for Law
Astra for Law is a product by OpenAI designed to assist legal professionals with AI-powered tools. It aims to streamline legal research and analysis using advanced AI technology. (openai.com)
A developer scraped Reddit knife threads to extract brand, model and steel mentions, had Gemini label 4,290 comments for $9, and fine-tuned GLiNER large v2.5 (459M) to replace paid API calls. Labels were requested as exact substrings so code could compute offsets; the dataset contained about 1,575 positive examples, 675 negatives, 3,907 entity spans (1,720 brands, 1,345 models, 842 materials) and a locked 225-comment validation set. Zero-shot GLiNER scored roughly 0.65 F1 versus Gemini; the plan was to pay once for labels, train a local model, and stop billing per comment. Training used a Tesla T4 with gradient accumulation, small batches and a 0.45 detection threshold.
Ten training runs revealed that most failures were plumbing, not modeling. Three config mistakes and two runs broken by a misused words_mask tensor prevented learning: words_mask is a per-word index (0 for special/pad, then 1,2,3…) used to pool subtokens, not an attention mask, and filling it with ones made the loss flat. After fixing that and tuning (per-class thresholds, negative sampling, early stopping), results stabilized: a 209M checkpoint hit 0.80 F1 and the 459M model 0.83 F1 against Gemini labels, with material recall of 0.911 after per-class thresholds. Total cost was about $11.50; the main lesson is that small fine-tuning projects typically fail in the glue code, and explicit assertions on hand-built tensors save days of debugging.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Astra for Law is a product by OpenAI designed to assist legal professionals with AI-powered tools. It aims to streamline legal research and analysis using advanced AI technology. (openai.com)
Canto is a new speech model by Wispr AI designed for real-world dictation, performing well with background noise and varied conditions. It achieved the lowest word error rate among tested models in real-world scenarios, outperforming competitors like Google and OpenAI. (wisprflow.ai)
Apple's new AI Siri, launched with OS 27, can access and interpret data across Apple apps to assist with personal queries, replacing many traditional searches. It demonstrated impressive capabilities in tests, though it still has some limitations. (pogueman.substack.com)
Agents can perform complex code migrations and rewrites with proper guardrails, but most software development still relies on human engineers. Future self-driving codebases will focus on enabling engineers to concentrate on high-level ideas, with automation handling routine tasks. (blog.detail.dev)
Weaviate's 4-bit rotational quantization reduces memory usage by 45% with less than 1% recall loss, improving vector search efficiency. Enhancements like SIMD support for Fast Walsh-Hadamard Transforms significantly boost encoding speed across hardware platforms. (weaviate.io)
Palantir CEO Alex Karp urged for reasonable guidelines and regulations for artificial intelligence to address its inherent risks. He also suggested that AI labs might need to be nationalized to ensure accountability for harmful technology development. (cnbc.com)
Today's best Hacker News stories, summarized and screenshotted, one email a day.