techlist.io

Azure

6 posts

Microsoft2025-03-032 min readCurated summary

How Microsoft Engineers Build AI: Learn about scalable RAG-enabled AI Apps

Microsoft’s new *How Microsoft Engineers Build AI* video series explains how its teams develop AI applications at scale. The first episode focuses on retrieval-augmented generation (RAG), using Copilot for Azure’s Ask Learn plugin as a practical example. It shows how RAG can combine proprietary data with large language models to deliver accurate, contextually relevant answers. ## Building AI Applications with RAG - RAG is presented as a practical way to improve AI applications without relying solely on model fine-tuning. - It retrieves relevant information from a knowledge base and provides that context to an LLM when generating responses. - The approach is useful for applications that need current, domain-specific, or proprietary information. ## The Ask Learn Plugin - Microsoft engineers explain how they built the Ask Learn RAG plugin for Copilot for Azure. - The plugin helps Azure developers find answers quickly within their existing workflow. - The project involved product managers and engineering leaders sharing development challenges, design decisions, and best practices. ## Challenges in Developing Reliable RAG - Selecting the right source content is essential for producing useful answers. - Data must be preprocessed effectively before it can be retrieved. - RAG systems require careful performance evaluation to measure accuracy and relevance. - Keeping responses accurate and up to date requires ongoing improvements to content and retrieval methods. ## Broader Microsoft Applications - The episode discusses RAG implementations across: - Copilot in Azure - Microsoft Security Copilot - Dynamics 365 Business Central - These examples demonstrate how RAG can support different products and business scenarios. The episode is intended as a practical introduction for developers building RAG-based applications, covering prototyping, data management, evaluation, and common pitfalls. Developers can explore the series alongside Microsoft Learn resources and Azure AI development tools such as Visual Studio and GitHub Copilot.

Microsoft2024-07-183 min readCurated summary

Managed DevOps Pools – The Origin Story

Microsoft’s vast, diverse engineering organization had accumulated more than 5,000 self-hosted Azure DevOps pools, creating duplicated tooling, inconsistent reliability, security gaps, and compliance challenges. Its One Engineering System (1ES) team addressed this with 1ES Hosted Pools, a standardized service for flexible, secure, and scalable CI/CD infrastructure. Adoption reduced costs by more than 60%, cut remaining self-hosted pools to a few dozen, and eventually led to the external Managed DevOps Pools offering. ## The Scale and Challenges of Self-Hosted Infrastructure - Microsoft supports over 100,000 engineers across many businesses, programming languages, operating systems, hardware platforms, build engines, and test frameworks. - By 2021, teams had created: - More than 5,000 self-hosted Azure DevOps pools - Hundreds of thousands of agents - Teams needed capabilities unavailable from Microsoft-hosted agents, including: - Larger compute sizes - Private-network connectivity - Custom images - Stateful agents - Long-running tests - The decentralized approach caused: - Duplicate engineering effort - Uneven support and reliability - Poor resource utilization and higher costs - Inconsistent patching and security practices - Difficult and time-consuming compliance audits ## 1ES Hosted Pools - 1ES developed a standardized internal service for custom Azure DevOps infrastructure. - Teams could connect agents to private resources such as package registries, secret managers, and on-premises services. - They could bring custom images, using centrally maintained images as their base. - Business continuity features allowed backup pools and failover to other Azure regions. - Agents were stateless by default, but teams could reuse stateful agents for better performance through local caches. - Stateful agents were automatically recycled based on age or available disk space. - Teams could select Azure VM families and sizes suited to their workload. - Standby agents could be pre-warmed on schedules or automatically provisioned using historical demand. ## Operational and Business Benefits - **Lower costs:** Infrastructure bills fell by more than 60% through improved utilization, better SKU selection, and selective use of Azure Spot VMs. - **Faster development:** Teams spent less time maintaining CI/CD infrastructure and more time building products. - **Simpler compliance:** Standardized telemetry made audits easier and allowed security and compliance improvements to be deployed centrally. - **Greater mobility:** Developers changing teams no longer had to learn different infrastructure-management systems. - **Improved security:** Features such as Azure Confidential VMs, Trusted Launch, and Secure TPM became available across pools. - **Reduced fragmentation:** By 2024, Microsoft had reduced its remaining self-hosted pools from more than 5,000 to only a few dozen. ## From Internal Platform to Managed DevOps Pools - 1ES first built Hosted Pools as an internal “Host On Behalf Of” service to validate whether centralized management could reduce self-hosting. - Success inside Microsoft, combined with customer demand, led to the external **Managed DevOps Pools (MDP)** service. - Organizations using VM Scale Set agents or self-hosted agents can migrate to MDP to gain standardized scaling, security, compliance, and operational support. - The external offering initially does not include every feature available in 1ES Hosted Pools, though additional capabilities may be added later. Centralizing CI/CD infrastructure can eliminate redundant platform work while improving cost efficiency, security, compliance, and developer productivity. Managed DevOps Pools extends Microsoft’s internal solution to organizations facing similar self-hosting challenges.

OpenAI2023-03-132 min readCurated summary

GPT-4

OpenAI introduced GPT-4 in March 2023 as its most capable model to date, following the GPT, GPT-2, and GPT-3 line of scaling deep learning with more data and compute. The company says six months of work on safety and alignment made it substantially more reliable than GPT-3.5 on its internal evaluations: 82% less likely to respond to requests for disallowed content and 40% more likely to produce factual responses. The post presents these gains alongside early customer deployments and acknowledges remaining limitations. ### Safety and Alignment Work - **Human feedback:** OpenAI incorporated more human feedback, including feedback submitted by ChatGPT users, and consulted over 50 experts in areas such as AI safety and security before release. - **Lessons from earlier models:** Insights from real-world use of previous models informed GPT-4's safety research and monitoring systems. - **GPT-4 aiding its own safety work:** GPT-4's reasoning and instruction-following helped generate training data for fine-tuning and iterate on classifiers used in training, evaluation, and monitoring. - **Ongoing updates:** As with ChatGPT, OpenAI plans to update and improve GPT-4 at a regular cadence as usage grows. ### Early Customer Applications - **Duolingo** used GPT-4 to deepen its language-learning conversations. - **Be My Eyes** applied it to visual accessibility. - **Stripe** used it to streamline user experience and combat fraud. - **Morgan Stanley** deployed it to organize its wealth management knowledge base. ### Infrastructure, Availability, and Limitations - **Training:** GPT-4 was trained on Microsoft Azure AI supercomputers, which also support delivering the model to users worldwide. - **Availability:** It is accessible through ChatGPT Plus and as an API for developers building applications and services. - **Known limitations:** Social biases, hallucinations, and vulnerability to adversarial prompts remain open problems. OpenAI emphasizes transparency, user education, and broader AI literacy, and says it aims to expand how people can shape its models. OpenAI frames GPT-4 as a step toward technologies that empower everyone, and says it is eager to see how people use it.

OpenAI2023-03-134 min readCurated summary

GPT-4

# GPT-4: Scaling Up Multimodal Capability with Predictable Training and Stronger Safety OpenAI introduces GPT-4, a large multimodal model that accepts image and text inputs and produces text outputs. While less capable than humans in many real-world settings, it reaches human-level performance on many professional and academic benchmarks, such as scoring around the top 10% on a simulated bar exam. The post argues that GPT-4 is a meaningful step forward in reliability, factuality, and steerability, while acknowledging that hallucinations and other limitations remain. ## Capabilities and Benchmarks - GPT-4 is noticeably more reliable, creative, and able to follow nuanced instructions than GPT-3.5, with the gap becoming clearer as task complexity rises. - Exam results were measured on recent public tests and 2022–2023 practice exams, with no exam-specific training, though a minority of problems may have appeared in training data. - On traditional ML benchmarks, GPT-4 outperforms existing large language models and most state-of-the-art systems. - On the MMLU benchmark translated into 26 languages via Azure Translate, GPT-4 beats GPT-3.5's English performance in 24 of them, including low-resource languages like Latvian, Welsh, and Swahili. - Internally, GPT-4 is used for support, sales, content moderation, and programming, and to help humans evaluate AI outputs. ### Visual Inputs - GPT-4 accepts interleaved text and images and generates text output, supporting tasks on documents, diagrams, and screenshots. - Text-only techniques such as few-shot and chain-of-thought prompting carry over to image inputs. - Image input was a limited research preview at launch, working first with a single partner. ### Steerability - Developers can define tone, style, verbosity, and task through a "system" message instead of relying on a fixed ChatGPT persona. - Adherence to these boundaries is imperfect, and system messages are the easiest route to jailbreaking the model. ## Limitations and Factuality - GPT-4 still hallucinates facts and makes reasoning errors, so high-stakes uses need human review, grounding in context, or avoidance altogether. - It scores 40% higher than GPT-3.5 on OpenAI's internal adversarial factuality evaluations. - On TruthfulQA, the base model barely improves on GPT-3.5, but after RLHF post-training a large gap emerges, though subtle errors still occur. - Knowledge ends around September 2021, the model does not learn from experience, and it can be overly gullible or introduce security vulnerabilities in code. - The pre-trained base model is well calibrated, but post-training reduces that calibration. ## Risks and Mitigations - Over 50 experts in areas such as AI alignment, cybersecurity, biorisk, and international security adversarially tested the model. - An additional safety reward signal during RLHF, provided by a GPT-4 zero-shot classifier, trains the model to refuse harmful requests while still allowing valid ones. - Compared with GPT-3.5, GPT-4 is 82% less likely to respond to disallowed content and 29% more likely to respond to sensitive requests in line with policy. - Jailbreaks remain possible, so the post stresses deployment-time safeguards such as abuse monitoring. ## Training and Predictable Scaling - The base model is trained to predict the next word on a web-scale corpus that includes both correct and incorrect reasoning, then fine-tuned with RLHF to match user intent. - Capabilities mostly come from pre-training, while RLHF mainly steers behavior and can slightly degrade exam performance. - OpenAI built infrastructure whose behavior is predictable across scales, forecasting GPT-4's final loss using models trained with 10,000x less compute. - Pass rates on a subset of HumanEval were predicted using models trained with 1,000x less compute. - Some capabilities remain hard to predict, such as tasks from the Inverse Scaling Prize, where GPT-4 reverses the negative trend. ## OpenAI Evals - Evals is an open-source framework for building benchmarks and inspecting model performance sample by sample, letting anyone report shortcomings. - It includes templates for common benchmark patterns and a "model-graded" template, since GPT-4 is surprisingly good at checking its own work. - Stripe uses Evals to measure the accuracy of a GPT-powered documentation tool. ## Access and Pricing - ChatGPT Plus subscribers get GPT-4 with a usage cap that may be adjusted based on demand. - The API is available through a waitlist, using the same ChatCompletions API as gpt-3.5-turbo. - The 8K-context model costs $0.03 per 1K prompt tokens and $0.06 per 1K completion tokens. The 32K-context model costs $0.06 and $0.12 respectively. - Default rate limits are 40k tokens per minute and 200 requests per minute, and researchers studying societal impact or alignment can apply for subsidized access.

Figma2018-08-153 min readCurated summary

Learn how a Microsoft designer built an Icon Library in his spare time | Figma Blog

Jackie Chui, a Microsoft designer, built a browser-based library containing more than 4,000 company icons in just three weeks. The tool unified icons across design applications, made them searchable through designer tags and engineering class names, and supported reverse searches using pasted icons. Its success came from focusing on practical user needs, leveraging familiar web technologies, and distributing a simple first version quickly. ## Researching Users and Existing Tools - Jackie interviewed Microsoft designers and observed their workflows to identify problems with existing icon management. - He evaluated IconJar, which offered organization and copy/paste functionality but lacked: - Shared, crowdsourced tagging - Browser and cloud access - Windows compatibility - These limitations led him to build a custom internal solution after hours. ## Designing and Building the Library - Jackie first created the interface in Sketch, borrowing ideas from IconJar and applying Microsoft’s Fabric design language. - With existing HTML, CSS, and JavaScript experience, he used Meteor.js to build both the frontend and backend. - A Meteor React tutorial helped him adapt a simple to-do-list database into an icon database. - Working on a concrete problem allowed him to learn development concepts while building the product. ## Extracting and Organizing Icons - Microsoft’s icons were stored in a font file, requiring users to copy and paste special Unicode icon characters into their designs. - Jackie extracted the icon files and retrieved each icon’s Unicode character. - He found Microsoft documentation containing the corresponding engineering class names. - The names were collected in Excel, converted to JSON, and imported into the application. - The resulting library let designers search for icons and copy their characters from one central location. ## Distribution and Adoption - Jackie hosted the application on Microsoft Azure. - He initially emailed the link to his team, after which word-of-mouth spread it throughout the design studio. - Users helped identify bugs and suggest features for version two. - The library quickly became part of many designers’ regular workflows. ## Future Plans - Jackie planned to convert all 4,000-plus icons into Figma components with a single click. - This would let Microsoft teams organize and search icons directly in Figma rather than through a separate browser tool. - He also hoped to release the converter more broadly so anyone could turn an icon font file into Figma components. The project demonstrates that an effective internal tool can start with focused user research, modest technical foundations, and a rapid first release. A browser-based, searchable library is a practical way to eliminate design-tool silos and create a shared source of truth for icons.

OpenAI2018-01-175 min readCurated summary

Scaling Kubernetes to 2,500 nodes

# Scaling Kubernetes to 2,500 Nodes for Deep Learning OpenAI's deep learning research team ran Kubernetes for over two years and pushed one cluster to more than 2,500 nodes on Azure, mixing D15v2 and NC24 VMs. Along the way, nearly every major system component broke, including etcd, the kube-apiservers, Docker image pulls, networking, KubeDNS, and the ARP cache. The post walks through each failure and the specific fix, with the common theme that most problems came from default settings that did not hold up at scale. ## etcd Performance and Storage Limits - Past 500 nodes, researchers saw frequent kubectl timeouts. Adding more kube-apiserver replicas helped temporarily but stopped working past 10 replicas, which pointed to the real bottleneck: etcd. - etcd write latency spiked to hundreds of milliseconds on network-attached P30 SSDs. Benchmarking with fio showed etcd used only about 10% of the disk's IOPS because its sequential writes were latency-bound at 2ms. - Moving the etcd data directory to the instance's local SSD dropped write latency to 200µs and restored health. - Past 1,000 nodes, the apiservers were reading over 500MB/s from etcd. Prometheus monitoring and audit logs (`--audit-log-path`, `--audit-log-maxbackup`) revealed slow queries and heavy LIST calls on Events. - The root cause was Fluentd and Datadog querying the apiservers from every node. The team reduced their polling frequency, which stabilized apiserver load. - Events were moved to a separate etcd cluster using `--etcd-servers-overrides`, so bursts of Event creation would not affect the main cluster. - Hitting etcd's default 2GB storage limit stopped all writes, which made nodes fail health checks and caused the autoscaler to terminate workers. The fix was raising `--quota-backend-bytes`, and the autoscaler gained a safeguard that refuses to act if it would remove more than 50% of the cluster. ## Kube Master Configuration - The kube-apiserver, kube-controller-manager, and kube-scheduler run colocated on at least two master machines for high availability. `--apiserver-count` is set explicitly so Prometheus does not confuse instances. - Because the cluster is mainly used for batch workloads with autoscaling, the team reversed the default scheduler behavior. Instead of spreading pods evenly, they packed them using `MostRequestedPriority` and `InterPodAffinityPriority`, which lets idle nodes be terminated and leaves room for large pods. ## KubeDNS Hotspots - The new packing policy placed 10+ KubeDNS replicas on some machines. These hotspots exceeded the roughly 200 QPS per-VM limit Azure enforces on external DNS lookups. - The fix was a `podAntiAffinity` rule with `kubernetes.io/hostname` as the topology key, which spreads KubeDNS pods across different nodes. ## Docker Image Pulls - The Dota image is about 17GB and took around 30 minutes to pull on a fresh node. Because kubelet's `--serialize-image-pulls` defaults to true, that single pull blocked every other image on the node. - Setting it to false required switching Docker's storage driver from AUFS to overlay2. The Docker root was also moved to the local SSD to speed up pulls. - Large pulls were being canceled for lack of progress (`net/http: request canceled`). The team raised `--image-pull-progress-deadline` to 30 minutes and set Docker's `max-concurrent-downloads` to 10 to process the backlog in parallel. - Nodes reaching gcr.io through a NAT were hitting per-IP quota limits on the pause container image, which blocked all container starts. The fix was preloading that image, along with a whitelist of common internal images, into the worker machine image using `docker image save` and `docker image load`. ## Networking Overhead - Direct machine-to-machine throughput was 10–15 Gbit/s, but pods on Flannel reached only about 2 Gbit/s on Azure. Flannel did not show this overhead on the team's physical machines, so the cause was environmental rather than misconfiguration. - The workaround is `hostNetwork: true` with `dnsPolicy: ClusterFirstWithHostNet`, which bypasses Flannel for specific pods. The post cautions readers to review the Kubernetes documentation's warnings before using it. ## ARP Cache Exhaustion - Intermittent DNS failures and multi-second connection delays on a Redis host traced back to the kernel's ARP neighbor table. The dmesg log reported `neighbor table overflow!`. - Every pod has its own IP address, so pods consume ARP entries quickly. The fix was raising `net.ipv4.neigh.default.gc_thresh1`, `gc_thresh2`, and `gc_thresh3` in `/etc/sysctl.conf` to 8000, 9000, and 100000. This is a common tuning step in HPC clusters. ## Practical Takeaway Scaling Kubernetes well past typical sizes depends less on any single fix than on checking default behavior at every layer: monitoring polling, storage latency, image pull settings, scheduler policy, DNS placement, and kernel networking limits. The team reported the clusters ran incident-free for about three months after these changes, and they had upgraded to Kubernetes 1.8.4, which officially supported 5,000 nodes.