TLDRocket
Sign in

Tools & Coding

975 summarised stories in Tools & Coding, each linking back to the original source. Browse all topics →

Thursday, 16 January 2025

Structured Logprobs

GitHub 1 year ago 44

A Python library called structured-logprobs adds token-level log probability data to OpenAI's structured outputs, allowing developers to measure confidence in each generated value. The library provides two methods: adding log probabilities as a separate field (returning values like -5.5 for "capital_of_France") or embedding them inline within the JSON response. This enables assessment of reliability for extracted data by quantifying how likely the model found each token it generated.

Designing for developers means designing for LLMs too

encore.dev 1 year ago 2

Encore announced that its API design principles now account for how large language models interact with developer tools. The company updated its documentation and interface patterns to be compatible with LLM parsing, including structured response formats and clearer endpoint descriptions. This shift means developers building AI-assisted applications can more easily integrate Encore's services without manual formatting or custom parsing logic.

Common pitfalls when building generative AI applications

Chip Huyen 1 year ago 49

An article identifies six common mistakes when building generative AI applications: using generative AI unnecessarily instead of simpler solutions, confusing product failures with AI failures, adopting complex frameworks prematurely, underestimating the effort required beyond initial success, relying solely on AI-based evaluation without human review, and crowdsourcing use cases without strategic planning. LinkedIn required four additional months to improve from 80% to 95% quality on their meeting summary chatbot, demonstrating how going from initial demo to production-ready significantly exceeds the time needed for early prototypes. Teams succeed by starting simple, validating designs with users, conducting daily human evaluation of outputs, and pursuing use cases aligned with strategic business objectives rather than ad-hoc requests.

Introducing multi-backends (TRT-LLM, vLLM) support for Text Generation Inference

Hugging Face 1 year ago 12

Text Generation Inference now supports multiple inference backends including TensorRT-LLM and vLLM through a unified interface, allowing users to switch between different execution engines without changing their deployment code. The vLLM backend integration is scheduled for Q1 2025, with additional backends for llama.cpp, AWS Neuron, and Google TPU also in development. Users can now select the optimal backend for their specific hardware and performance requirements rather than being locked into a single inference solution.

Timm ❤️ Transformers: Use any timm model with transformers

Hugging Face 1 year ago 13

The Hugging Face transformers library now supports integration with timm (PyTorch Image Models), allowing users to leverage timm's 200K+ daily-downloaded computer vision models within the transformers ecosystem. An 8-bit quantized timm ViT model reduced from 346.27 MB to 88.20 MB (74.53% reduction) while maintaining nearly identical inference accuracy. Users can now fine-tune timm models with the Trainer API, apply LoRA for parameter-efficient training, use pipeline APIs for inference, and round-trip fine-tuned models back to timm's native format.

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.