423

You don't need a vision

BingChat

The response is derived from the current web page context. Here are the takeaways:

Arnold’s advice: Arnold Schwarzenegger advises people to find their vision of the future and visualize it as a movie in their head. He says this is how he achieved his success in bodybuilding, acting, and politics.

Author’s perspective: The author of the article does not have a grand vision for his life and thinks that visions can be inflexible and blind us to reality. He suggests a different model of living and growing: pushing the furniture around, or trying out different arrangements until something works.

Drawing as a tool: The author also recommends drawing as a way of slowing down and paying attention to what is in front of us, not what we think is in front of us. He says that drawing can help us see past our expectations and notice more.

Daily practice: The author concludes that what matters most is to show up and establish a daily practice. He says that creative work is sometimes just going through the motions, and that sticking to a practice will make things appear. He is curious to see what turns up, and that’s why he gets up in the morning.

阅读原文 永久链接

422

Goodbye, Twilio

Comment

We could some changes from Twilio’s billboard

from “Ask your developer” to “How can I reduce acquisition costs by 65%”

clearly the last one is more about value proposition and it’s for marketing people obviously.

The author was a developer at Twillio, for him, such changes meaning developer is no longer at the center of the company’s business, Twillio shift their targeting audience from developer to marketing people, which is a huge change.

I’m OK with company market shift, but from developer suddenly to marketing people is not good, obviously there’s a huge gap between these 2 roles, they don’t have a connection, it doesn’t like you shift audience from marketing people to sales, this is ok since these 2 roles has lots connections, and their workflow are highly related.

Meanwhile, Twilio stock price is like 18% of the highest price.

阅读原文 永久链接

421

The Rot Economy

TL;DR

文章定义并批判了“腐朽经济”(Rot Economy),指出当代商业(尤其是科技行业)被对“增长”(定义为更多的收入、更高的估值和市场份额,而非更好的产品或可持续性)的病态追求所驱动,这种痴迷由投资者和市场奖励,导致了创新扼杀、产品质量下降、资本错配以及破坏性的雇佣和解雇循环。

主题

腐朽经济的核心:对增长的病态痴迷

现代商业,尤其是在公共和私人投资者以及市场的影响下,已经脱离了“好”业务的基本概念,转而极端关注单一指标:增长。“增长”在此语境下并非指业务变得“更大”或“更好”,而仅仅是“更多”——更多收入、更高估值、更大市场份额。企业被期望并被奖励成为永恒燃烧资本的引擎,以创造更多股东价值,而提供服务给客户反而成了次要目标。这种模式忽视了可持续性、创新和稳健的商业实践。

公开市场的表现:奖励表象而非实质

公开市场倾向于奖励那些展现出“增长”迹象的公司,即使其基础业务存在严重问题或采用了不可持续的策略。

  • 科技巨头的例子:Google, Meta, Microsoft 等公司因大规模裁员以削减成本(被视为提高“效率”)而受到市场奖励,尽管这暴露了它们糟糕的规划、停滞的产品和对人力资本的管理不善。只要“数字在增长”,市场的惩罚就不会到来。
    • Meta:尽管其核心广告业务面临法律和技术挑战(如 GDPR 罚款、数据追踪限制),且寄予厚望的元宇宙项目持续亏损数十亿美元,但在宣布裁员和“效率年”后,其股价依然上涨。
    • Google:其核心产品 Google Search 质量持续下降,从信息发现工具变成充斥着 SEO 垃圾的迷宫,用户体验糟糕。然而,由于其仍能榨取利润,市场并未惩罚这种产品退化。推出 Bard AI 被视为试图将修复自身造成的问题包装成创新。
    • Uber:尽管长期亏损(上季度净亏损 12.1 亿美元)且其商业模式依赖于可能无法持续的劳工实践(零工经济),但因“总预订量同比增长 19%”而受到市场追捧。

风险投资的角色:加速腐朽与资本错配

风险投资 (Venture Capital) 体系进一步加剧了对增长表象的关注,常常投资于那些“看起来”有价值而非真正有价值或可持续的企业。

  • 激励错位:VC 的目标通常是推动投资组合公司快速增长以实现高估值退出(收购或 IPO),而非建立长期健康的业务。
  • “硅谷巫妖” (Liches of Silicon Valley) 循环:描述了初创公司经历的典型路径:被誉为“下一个大事件” -> 获得高额融资和“独角兽”估值 -> 经历“前所未有的增长”(无论是否可持续或盈利)-> 进行收购扩张 -> 达到疯狂估值 -> 最终面临现实的严峻考验(以 Brex 为例)。
  • 投资于表象而非实质:
    • A16Z 与 Web3:Andreessen Horowitz 向 Web3 领域投入数十亿美元,尽管许多项目缺乏实际产品或用例,仅仅依靠流行语和网站来“看起来像”有价值的实体。
    • Adam Neumann 与 Flow:尽管 Adam Neumann 因将 WeWork 经营失败而闻名,但他仍能为其概念模糊的新公司 Flow 获得 A16Z 的巨额投资(3.5 亿美元),这更多是基于他符合“救世主式白人男性创始人”的刻板印象,而非其商业计划的可行性。
  • 资本过度集中与错配:大量资金被投入到市场规模有限或商业模式存疑的领域(如 Noom 获得 5.4 亿美元融资,而整个减肥行业市场规模约 38 亿美元;Clubhouse 获得数十亿美元估值,而整个广播行业年收入约 120 亿美元),表明资本被用作维持生命支持以待出售,而非用于建设可持续企业。

腐朽经济的后果:扼杀创新与可持续性

对增长的单一关注导致了多方面的负面后果,损害了商业生态和社会。

  • 创新停滞:资本不再投资于提供优质服务或解决实际问题的可持续业务,而是流向能够快速提升收入或估值的领域。公司失去改进核心产品和服务的动力(如 Google Search),甚至将修复自身错误包装成创新。Facebook 和 Instagram 等产品在追求利润最大化的过程中变得越来越无用。
  • 不可持续的商业实践与人力资源管理:大规模招聘和随后的大规模裁员成为常态。公司在经济繁荣期过度扩张,在经济下行时迅速裁员,人力资本被视为可调整的成本以取悦市场,而非长期投资。这种循环往复的“暴食与清洗”对员工造成巨大伤害,但公司很少因此受到惩罚。Microsoft 多年来反复裁员就是一个例子。
  • 忽视增长极限与商业伦理:该体系未能认识到增长是有限的。为了追求永无止境的增长,公司可能牺牲产品质量、用户体验甚至商业道德。无法盈利的企业本应消亡,但在这种模式下可能被人为维持。

总结

“腐朽经济”是一种由市场和投资者驱动、痴迷于量化增长指标的体系,它以牺牲真正的创新、产品质量、商业可持续性和员工福祉为代价,最终导致资本错配和破坏性的经济周期。

阅读原文 永久链接

420

Canva’s Content Ranks For Everything

Canva 的 https://www.canva.com/colors/ 网站内容用来 rank every keywords about color.

The content and design looks all great, but look deeper about the content, it has some patterns which is meaning the content could generated by AI.

But that’s find, because the content still looks great and very useful for readeres.

阅读原文 永久链接

419

Clouded Judgement 6.16.23 - Growth Adjusted Software Multiples

概述

本文分析了云软件公司的增长调整估值倍数,并探讨了当前市场环境对软件公司估值的影响。作者对比了过去十年的数据,并指出当前的增长预期处于历史低点,而长期利率则高于过去平均水平。市场预计未来增长和利率可能会成为软件公司估值的有利因素。

主题

  • 📈 软件行业估值趋势 过去六周内,云软件行业大幅上涨,WCLD 指数增长 30%,纳斯达克指数增长 12%。然而,当前软件公司的 NTM(未来 12 个月)收入倍数仍低于历史均值,市场仍在适应增长预期的下降和高利率环境。

  • 📉 增长与估值的关系 过去十年,云软件行业的中位 NTM 收入倍数约为 7.8 倍,而当前为 6.0 倍。同时,中位增长率从过去的 25%下降至 15%。在较低增长预期和较高利率的情况下,市场对软件公司估值的压力增加。

  • 📊 市场对未来的预期 目前市场可能处于增长预期的底部,未来可能出现收入增长加速。此外,通胀下降可能促使利率下调,从而利好软件公司的估值。然而,市场情绪与分析师的增长预期通常有 6-8 个月的时间滞后,因此目前市场估值的上升可能是对未来增长的提前反应。

  • 🏦 高增长公司 VS 低增长公司 估值倍数因增长率不同而存在显著差异,高增长公司(>30%)的中位数收入倍数为 9.0 倍,而低增长公司(<15%)仅为 3.7 倍。这表明市场仍然愿意为高增长的软件公司支付更高的溢价。

  • 🤖 人工智能泡沫的可能性 作者提及市场当前的高估值可能受人工智能热潮的推动,存在潜在泡沫风险。若增长预期未能兑现,或者经济下行压力增加,当前的高估值可能面临调整。

总体而言,软件行业估值受增长预期和利率变化的双重影响,市场对未来增长持乐观态度,但也可能存在高估风险。

阅读原文 永久链接

418

Louis Rossmann calls community to leave Reddit

koonsolo

developers are like “machines working in a factory”

After I worked a few years in the industry, I came to the following conclusion: The main difference between a factory and a knowledge business is that in a factory, the smartest, most knowledgable people are at the top (not completely the case, but mostly). In knowledge work, the smartest (=experts) are at the bottom. If you move up as a smart person, you will for sure lose up-to-date knowledge.

This has a few consequences of course. In knowledge work, managers should not say “First do this, then do that”. Managers should be at the service of their team, making sure they get the focus and freedom to work on their stuff.

Now back to the factories: I’m no expert, but one of the key elements of Lean Manufacturing is that the people on the floor are able to provide feedback to the upper layers. Why them? Because they have the hands-on knowledge and see things management can’t. So even in factories, either you listen to the lowest level employees or you’re not optimising your process.

And finally, if users and employees can be replaced, so can companies, products and services. The thing is that having great retention in users saves you a lot of investment on acquiring new ones. And having great retention in employees saves you a lot of investment in hiring and training. The leaders that realise this will outperform anyone that doesn’t.

Joeri

This is known as the theories X and Y of management: https://en.wikipedia.org/wiki/Theory_X_and_Theory_Y

阅读原文 永久链接

417

NPLG: 6.15.23: Warehouse-Centric PLG (Hightouch)

概述

本文是 Notorious PLG 关于 Hightouch 公司如何利用以仓库为中心的策略来实施产品驱动增长 (PLG) 的文章。Hightouch 的联合创始人兼联合 CEO Kashish Gupta 分享了他们的 PLG 策略,解释了他们如何使用数据仓库和自家产品来将用户注册转化为收入。

主题

  • 🏠 数据仓库为中心: Hightouch 的 PLG 策略核心是使用数据仓库。Hightouch 将来自不同来源的数据统一到数据仓库中,并使用 dbt 进行转换和建模。然后,他们使用 Hightouch 平台将这些数据激活到业务团队日常使用的应用程序中,例如 Salesforce 和 Hubspot。

  • ➕ 数据完整性: 这种方法有两个主要好处,其中之一是数据完整性。通过在数据仓库中使用 SQL 连接来自不同系统的数据,可以协调不同的对象类型,并对这些数据建模操作进行版本控制、组织、搜索和追溯。因为受众是在仓库中定义的,所以可以生成漏斗转化和实验报告。

  • 🏃 业务团队速度: 另一个好处是业务团队的速度。将逻辑移动到仓库,然后通过 Hightouch 将其激活到下游工具,确保每个人都基于相同的客户定义进行操作。每个工具都会更新关键信息,如客户阶段和最近的操作。业务用户可以通过常规工具进行试验并与客户互动,而无需工程资源。

  • 👨‍💻 PLG 团队: Hightouch 没有完全专注于 PLG 的人员,而是多个业务用户通过他们的常规工具和工作流程来影响增长。

阅读原文 永久链接

416

The New Language Model Stack

  1. Nearly every company in the Sequoia network is building language models into their products.
  2. The new stack for these applications centers on language model APIs, retrieval, and orchestration, but open source usage is also growing.
    1. 65% had applications in production, up from 50% two months ago, while the remainder are still experimenting.
    2. 94% are using a foundation model API. OpenAI’s GPT was the clear favorite in our sample at 91%, however Anthropic interest grew over the last quarter to 15%. (Some companies are using multiple models).
    3. 88% believe a retrieval mechanism, such as a vector database, would remain a key part of their stack.
    4. 38% were interested in an LLM orchestration and application development framework like LangChain.
    5. Sub-10% were looking for tools to monitor LLM outputs, cost, or performance and A/B test prompts.
    6. A handful of companies are looking into complementary generative technologies, such as combining generative text and voice. We also believe this is an exciting growth area.
    7. 15% built custom language models from scratch or open source, often in addition to using LLM APIs.

LLM APIs

  • OpenAI
  • Anthropic PBC
  • Cohere Inc.

Vector Database

  • AWS
  • PGVector

Frameworks

  • LangChain

  1. Companies want to customize language models to their unique context.

Right now, there are three main ways to customize language models (for a deeper technical explanation, see Andrej’s recent State of GPT talk at Microsoft Build): - Train a custom model from scratch. Highest degree of difficulty. - Fine-tune a base model. Medium degree of difficulty. - Use a pre-trained model and retrieve relevant context. Lowest degree of difficulty.

  1. Today, the stack for LLM APIs can feel separate from the custom model training stack, but these are blending together over time.
  2. The stack is becoming increasingly developer-friendly.
  3. Language models need to become more trustworthy (output quality, data privacy, security) for full adoption.
  4. Language model applications will become increasingly multi-modal.
  5. It’s still early.

阅读原文 永久链接

415

PLG and sales in 2023

PLG and sales from some of the top SaaS startups including Figma, ClickUp, Webflow, Zapier, Supermetrics, and Hotjar. Your five step plan:

  1. Start with the customer journey
  2. Validate that sales is incremental
  3. Identify product signals to drive engagement
  4. Define the right sales plays
  5. Be thoughtful about comp & operations

Anti-patterns to avoid

  1. Hide pricing and force all users to talk to sales.
  2. Water down PLG offerings so they don’t “compete” with enterprise deals.
  3. Call on every new free user independent of what they’ve done in the product.
  4. Over-index on commercial conversations rather than customer experience and delivering value upfront.
  5. Get too greedy on the initial purchase.
  6. Only talk to existing product users rather than navigating to the buyer.

Step 1: Start with the customer journey

The goal of sales should be to engage with the right person at the right time in their product journey. Ask yourself: what customers need more help?

There are three typical vectors to consider:

  1. The size of the organization
  2. The complexity of their existing systems
  3. The level of product sophistication

You can capture ICP data through two means: (1) data enrichment of your user sign-ups, for instance through tools like Clearbit or ZoomInfo, (2) profiling questions during new user onboarding.

Step 2: Validate that sales is incremental

In my experience, users who opt-into a sales touchpoint tend to convert at far higher rates than ones who don’t. sales is an expensive resource…recommend validating that sales is both incremental and efficient before fully scaling up the team.

As Deputy has moved up the self-service threshold, they’ve measured the trade-off in terms of conversion rate, revenue, and efficiency. At this point, 70% of new customers and over 33% of Deputy’s new MRR can be attributed to self-serve. These changes have also freed up sales capacity to go more upmarket with the same size sales team.

Step 3: Identify product signals to drive engagement

I find that there are six types of product signals which apply across most products.

  • Usage frequency: they’re a heavy user of the product (log-ins, time spent, etc.) in a way that indicates they’ve realized significant value/ROI.
  • High value features: they adopt – or try to adopt – high-value features such as advanced reporting or integrations.
  • Growth: usage and/or users have hit a sudden spike relative to the last week or the last month.
  • Multi-product usage: they start an in-product trial of a product or feature that the account doesn’t pay for yet.
  • Team or multi-team use: they invite multiple users within the same team and/or from additional teams within the same company domain.
  • Product CTA: they engage with a call-to-action in the product, ex: click to request a demo, ask to talk to support, send a chat, view the pricing page but don’t buy.

Step 4: Define the right sales plays

There are a number of potential sales plays to consider.

  • Inbound hand-raisers: User opts into a sales touchpoint via requesting a demo, clicking a CTA, replying to an automated email, etc. → this is more of a traditional sales motion.
  • Sales-assist: User is at a high-ICP fit account and needs more help setting up the product → help onboard and activate users in order to unlock commercial opportunities later.
  • Warm outbound: Account meets your Product Qualified Account threshold, but your user(s) are not the buyer → run outbound sales & account-based marketing into decision makers within the organization.
  • Support → Sales hand-off: User requests help by contacting support → create a feedback loop between support and sales; sales follows up after the issue is resolved.

Step 5: Be thoughtful about comp & operations

I’ll explore the compensation and operations piece of product-led sales in a future piece. With that in mind, here are my quick takes on three common questions:

  • Should reps get commission for deals that decide to buy via self-service? Yes, if the account has been assigned as part of their patch (defined based on the ICP-fit and/or product readiness) and there was meaningful sales engagement prior to the purchase. Don’t create artificial channel conflict for customers.
  • Should we compensate based on revenue, customer experience KPIs, team performance, or something else? Comp models depend on the maturity of your sales motion and your specific business objectives. When your motion is in its early stages, I like either MBO or team performance KPIs. As the motion is scaling, individual KPIs tend to work best. These days most at-scale PLG companies stick with MRR-based sales comp, although there are notable exceptions.
  • Should we reward reps for the initial land vs. ongoing expansion? Only paying reps on the initial land doesn’t play well with a land-and-expand motion. I like to have a longer window (ex: 4-12 month tail) so you don’t incentivize reps to go for broke on the initial transaction.

Closing thoughts

Four parting tips for combing PLG and sales in 2023:

  • Sales will be closest to the customer. Product-led companies tend to be data-driven rather than customer-driven. Sales’ experience can bring PLG companies closer to their customers. Create feedback loops to bring sales’ learnings into the product and self-service experience.
  • Work towards shared goals. Everyone is after the same end-goal. Avoid KPIs that create misalignment across teams (ex: self-service versus sales-generated revenue).
  • Don’t abandon your PLG efforts as you move upmarket and close bigger deals. This can be especially tempting right now as folks navigate the current economic and fundraising environment.
  • Pay close attention to PLG pricing & packaging. You want to offer real value to your target customers, and then create bridges to future monetization.

阅读原文 永久链接

414

The State of Machine Learning Frameworks in 2019

Why do researchers love PyTorch?

  • Simplicity. It’s similar to numpy, very pythonic, and integrates easily with the rest of the Python ecosystem. For example, you can simply throw in a pdb breakpoint anywhere into your PyTorch model and it’ll work. In TensorFlow, debugging the model requires an active session and ends up being much trickier.
  • Great API. Most researchers prefer PyTorch’s API to TensorFlow’s API. This is partially because PyTorch is better designed and partially because TensorFlow has handicapped itself by switching APIs so many times (e.g. ‘layers’ -> ‘slim’ -> ‘estimators’ -> ‘tf.keras’).
  • Performance. Despite the fact that PyTorch’s dynamic graphs give strictly less opportunity for optimization, there have been many anecdotal reports that PyTorch is as fast if not faster than TensorFlow. It’s not clear if this is really true, but at the very least, TensorFlow hasn’t gained a decisive advantage in this area.

By BingChat

The state of machine learning frameworks in 2019 is the topic of this web article, which compares PyTorch and TensorFlow, the two dominant frameworks in research and industry. The article uses graphs, data, and examples to show that:

  • PyTorch has surpassed TensorFlow in the number of papers, conferences, and job listings, especially in vision and language domains.
  • PyTorch has improved its performance, simplicity, and API over TensorFlow, and has gained more adoption and support from researchers.
  • TensorFlow has maintained its edge in production, and has solutions for mobile, serving, and other requirements that PyTorch lacks.
  • TensorFlow has introduced eager mode to address its weaknesses, but this also forces a choice between ease of use and deployment.

The article also discusses the challenges and opportunities for both frameworks, such as:

  • The influence of researcher preference on industry adoption, and the potential of PyTorch to attract new talent and startups.
  • The transition from TensorFlow 1.0 to 2.0, which may offer a chance for companies to evaluate PyTorch.
  • The uncertainty of Google’s role in industry, and how it may affect the competition and innovation in machine learning.

The article concludes that PyTorch and TensorFlow are both auto-differentiation frameworks, but they have different strengths and weaknesses, and that the future of machine learning will depend on how well they can address the needs of researchers and industry.

阅读原文 永久链接

413

How Nvidia’s CUDA Monopoly In Machine Learning Is Breaking - OpenAI Triton And PyTorch 2.0

with the arrival of PyTorch 2.0 and OpenAI’s Triton, Nvidia’s dominant position in this field, mainly due to its software moat, is being disrupted.

This report will touch on topics such as

  • why Google’s TensorFlow lost out to PyTorch,
  • why Google hasn’t been able to capitalize publicly on its early leadership of AI,
  • the major components of machine learning model training time,
  • the memory capacity/bandwidth/cost wall,
  • model optimization,
  • why other AI hardware companies haven’t been able to make a dent in Nvidia’s dominance so far,
  • why hardware will start to matter more,
  • how Nvidia’s competitive advantage in CUDA is wiped away,
  • and a major win one of Nvidia’s competitors has at a large cloud for training silicon.

TensorFlow vs. PyTorch

PyTorch won. Google failed to convert its first mover’s advantage into dominance of the nascent ML industry.

Back to why PyTorch won. While there was an element of wrestling control away from Google, it was primarily due to its increased flexibility and usability of PyTorch versus TensorFlow. If we boil it down to a first principal level, PyTorch differed from TensorFlow in using “Eager mode” rather than “Graph Mode.”

Eager mode can be thought of as a standard scripting execution method. The deep learning framework executes each operation immediately, as it is called, line by line, like any other piece of Python code. This makes debugging and understanding your code more accessible, as you can see the results of intermediate operations and see how your model behaves.

In contrast, graph mode has two phases. The first phase is the definition of a computation graph representing the operations to perform. A computation graph is a series of interconnected nodes representing operations or variables, and the edges between nodes represent the data flow between them. The second phase is the deferred execution of an optimized version of the computation graph.

Machine Learning Training Components

there are two major time components in a machine learning model’s training time.

  • Compute (FLOPS): Running dense matrix multiplication within each layer
  • Memory (Bandwidth): Waiting for data or layer weights to get to the compute resources. Common examples of bandwidth-constrained operations are various normalizations, pointwise operations, SoftMax, and ReLU.

Even in 2018, purely compute-bound workloads made up 99.8% of FLOPS but only 61% of the runtime. The normalization and pointwise ops achieve 250x less FLOPS and 700x less FLOPS than matrix multiplications, respectively, yet they consume nearly 40% of the model’s runtime.

by BingChat

根据当前网页内容,Machine Learning Training Components 这部分的内容是这样的:

  • 机器学习模型的训练时间主要由两个部分组成:计算(FLOPS)和内存(Bandwidth)。
  • 计算是指在每一层中进行密集的矩阵乘法等操作,需要大量的浮点运算能力。
  • 内存是指等待数据或层权重传输到计算资源的时间,需要大量的内存带宽和容量。
  • 以前,机器学习训练的主要瓶颈是计算时间,但随着 Nvidia 的 GPU 的发展,这个问题逐渐得到了解决。Nvidia 的 GPU 通过摩尔定律和架构改进,大幅提高了 FLOPS。
  • 然而,内存并没有跟上 GPU 的发展。内存的速度和容量的增长受到了物理和经济的限制,导致了 memory wall 的出现。memory wall 是指内存需求超过了供应,导致模型训练的时间和成本的增加。
  • 作者举例说明了在 2018 年,当 BERT 模型是最先进的模型,而 Nvidia V100 是最先进的 GPU 时,矩阵乘法已经不再是提高模型性能的主要因素。作者还指出,从 A100 到 H100,FLOPS 增长了 6 倍以上,但内存带宽只增长了 1.65 倍。这意味着 H100 需要更多的技巧来解决 memory wall 的问题。

The Memory Wall

The answer is $$$. The nearest shared memory pool is on the same chip and is generally made of SRAM. the cost per GB of SRAM memory would still be in the $100s for a fully yielded product.

Nvidia’s architecture has always used a much smaller amount of memory on the die. DRAM has an order magnitude higher latency than SRAM (~>100 nanoseconds vs. ~10 nanoseconds), but it’s also much cheaper ($1s a GB vs. $100s GB.) While standard DRAM is only a few dollars per GB today, to get the massive bandwidth machine learning requires, Nvidia uses HBM memory, a device comprised of 3D stacked layers of DRAM that requires more expensive packaging. HBM is in the $10 to $20 a GB range, including packaging and yield costs.

By BingChat

根据当前网页内容,The Memory Wall 这部分的内容是这样的:

  • memory wall 是指随着模型规模的增长,内存容量和带宽的需求超过了供应,导致模型训练的时间和成本的增加。
  • 内存有一个层次结构,从近和快到远和慢。最近的共享内存池是在同一芯片上,通常是 SRAM。SRAM 速度快,但容量小,成本高。一些机器学习 ASIC 试图利用大量的 SRAM 来存储模型权重,但仍然不够。Nvidia 的架构一直使用较少的芯片上内存,而依赖于紧密耦合的片外内存,DRAM。DRAM 速度慢,但容量大,成本低。
  • DRAM 也遵循了摩尔定律很多年,但在 2009 年左右停滞了。从 2012 年开始,DRAM 的成本几乎没有改善。内存需求只增加了。DRAM 现在占服务器总成本的 50%。
  • 为了获得更高的内存带宽,Nvidia 使用了 HBM 内存,一种由 3D 堆叠层组成的 DRAM 设备,需要更昂贵的封装。HBM 的成本在每 GB 10 到 20 美元之间。
  • 内存容量和带宽的成本限制在 Nvidia 的 A100 GPU 中不断显现。A100 需要很多技巧才能绕过 memory wall,并且在没有重度优化的情况下 FLOPS 利用率很低。FLOPS 利用率指的是模型训练所需的计算 FLOPS 与 GPU 理论 FLOPS 的比例。即使经过重度优化,60% 的 FLOPS 利用率也被认为是非常高的。其余的时间是开销、空闲时间或者重新计算结果以减少内存瓶颈。

Operator Fusion – The Workaround

Instead of writing each intermediate result to memory, operations are fused, so multiple functions are computed in one pass to minimize memory reads/writes. Operator fusion improves operator dispatch, memory bandwidth, and memory size costs.

By BingChat

根据当前网页内容,Operator Fusion – The Workaround 这部分的内容是这样的:

  • 操作融合是一种优化方法,可以减少内存读写的次数,提高内存利用率和性能。操作融合是指将多个操作合并为一个更复杂的操作,一次性完成计算,而不是将每个中间结果写入内存。
  • 操作融合可以改善操作调度、内存带宽和内存大小的成本。操作融合对于那些内存密集型的操作,如归一化、逐点运算等,特别有用。操作融合也可以减少更复杂操作的开销,如 Flash Attention,它包含了矩阵乘法作为一个更大的融合操作的一部分。
  • PyTorch 由于使用了 eager mode,每个操作都会立即执行并返回结果,这样会增加内存带宽的需求。因此,操作融合是 PyTorch 中一个重要的优化方法。操作融合通常需要编写自定义的 CUDA 核函数,但这比使用简单的 python 脚本要困难得多。
  • 为了折中,PyTorch 逐渐在本身实现了更多的操作。这些操作通常是多个常用操作融合成一个单一的更复杂的函数。增加操作既使得在 PyTorch 中创建模型更容易,也使得 eager mode 的性能更快,因为有更少的内存读写。但缺点是 PyTorch 膨胀到了 2000 多个操作。
  • 对于 AI 硬件创业公司来说,为 PyTorch 完全实现一个高性能的后端意味着要支持这 2000 多个操作。这需要很高的人才水平和时间成本。而且,由于开发者习惯了 PyTorch 中的新操作,他们会继续使用它们,而不管它们是否对性能有帮助。
  • 此外,并不是所有的操作都可以被融合。很多时间都花在了决定哪些操作要融合,以及哪些操作要分配给特定的计算资源。不同的架构在这方面可能有不同的策略。

Nvidia Is King

The growth in operators and position as the default has helped Nvidia as each operator was quickly optimized for their architecture but not for any other hardware.

Ease of use is king.

The only way to break the vicious cycle is for the software that runs models on Nvidia GPUs to transfer seamlessly to other hardware with as little effort as possible.

简单来说,软件生态(PyTorch)总某种程度上弥补了硬件(Nvidia)的不足,这也助长了 Nvidia 在 AI 领域的垄断地位。

By BingChat

根据当前网页内容,Nvidia Is King 这部分的内容是这样的:

  • Nvidia 是机器学习领域的霸主,主要是因为它的软件护城河。它开发了 CUDA 平台,让开发者可以利用 GPU 的并行计算能力进行通用应用,如机器学习。CUDA 提供了高性能和支持多种编程语言。
  • Nvidia 的 GPU 也是最适合 PyTorch 的硬件,因为 PyTorch 中的每个操作都被快速地优化了 Nvidia 的架构,但没有针对其他硬件进行优化。如果一个 AI 硬件创业公司想要完全支持 PyTorch,就必须支持 2000 多个操作,并且保证高性能。
  • Nvidia 的 GPU 在处理矩阵乘法等计算密集型的操作时表现优异,但在处理归一化、逐点运算等内存密集型的操作时效率低下。因此,要在 GPU 上训练一个大型的模型,需要很高的人才水平和很多技巧,才能提高 FLOPS 利用率。
  • FLOPS 利用率指的是模型训练所需的计算 FLOPS 与 GPU 理论 FLOPS 的比例。即使经过重度优化,60% 的 FLOPS 利用率也被认为是非常高的。其余的时间是开销、空闲时间或者重新计算结果以减少内存瓶颈。
  • eager mode 执行加上操作融合意味着软件、技术和模型都被推动去适应当前 GPU 的计算和内存的比例。每个开发机器学习芯片的公司都受到同样的 memory wall 的限制。ASIC 都受到支持最常用框架的限制。ASIC 都受到默认开发方法的限制,即使用 GPU 优化的 PyTorch 代码和 Nvidia 和外部库的混合。一个放弃 GPU 的各种非计算包袱,而转向更多 FLOPS 和更严格编程模型的架构,在这种情况下没有多大意义。易用性是王道。
  • 打破这个恶性循环的唯一方法是让在 Nvidia GPU 上运行模型的软件能够无缝地转移到其他硬件上,而不需要太多努力。随着模型架构的稳定和 PyTorch 2.0、OpenAI Triton 和 MosaicML 等公司提供的抽象层成为默认,芯片解决方案的架构和经济性开始成为购买决策的最大驱动力,而不是 Nvidia 提供的易用性。

PyTorch 2.0

PyTorch 2.0…will make properly utilizing various hardware resources much easier.

PyTorch 2.0 brings an 86% performance improvement for training on Nvidia’s A100 and 26% on CPUs for inference! This dramatically reduces the compute time and cost required for training a model. These benefits could extend to other GPUs and accelerators from AMD, Intel, Tenstorrent, Luminous Computing, Tesla, Google, Amazon, Microsoft, Marvell, Meta, Graphcore, Cerebras, SambaNova, etc.

By BingChat

根据当前网页内容,PyTorch 2.0 这部分的内容是这样的:

  • PyTorch 2.0 是 PyTorch 的最新版本,它引入了一些新的特性,如 TorchDynamo 和 TorchInductor,以及对 eager mode 和 graph mode 的支持。
  • TorchDynamo 是一个 JIT 编译器,它可以将 PyTorch 的 eager mode 代码转换为 graph mode 代码,从而提高性能和可移植性。TorchDynamo 可以自动检测代码中的热点,并将它们编译成优化的计算图。TorchDynamo 还可以将多个操作融合成一个更复杂的操作,减少内存读写的次数。
  • TorchInductor 是一个代码生成器,它可以将 PyTorch 的 graph mode 代码转换为不同硬件架构的专用代码,从而提高效率和兼容性。TorchInductor 可以根据硬件的特点和限制,生成最佳的代码。TorchInductor 还可以支持自定义的硬件加速器,只需要提供一些基本的信息和接口。
  • eager mode 和 graph mode 是两种执行机器学习模型的方式。eager mode 是一种即时执行的方式,每个操作都会立即计算并返回结果,这样可以方便调试和理解代码。graph mode 是一种延迟执行的方式,需要先定义一个计算图,然后再优化和执行,这样可以提高性能和并行度,但也增加了复杂度和难度。
  • PyTorch 2.0 支持两种模式的混合使用,让开发者可以根据需要选择最适合的模式。PyTorch 2.0 还提供了一些工具和库,如 TorchScript、torch.fx、torch.nn、torch.utils、torch.distributed 等,来帮助开发者创建、优化、部署和扩展机器学习模型。

OpenAI Triton

OpenAI Triton only officially supports Nvidia GPUs today, but that is changing in the near future.

By BingChat

根据当前网页内容,OpenAI Triton 这部分的内容是这样的:

  • OpenAI Triton 是一个开源的软件,它可以让开发者在并行计算硬件上训练大规模的机器学习模型,如 GPU、TPU 或 FPGA。Triton 是一种新的编程语言,它可以自动生成优化的代码,适应不同的硬件架构和内存层次结构。
  • Triton 的设计目标是简单、可移植和高效。Triton 的语法类似于 Python,但是更加简洁和强大。Triton 可以处理内存管理和同步问题,让开发者可以专注于算法逻辑。Triton 还可以利用硬件的特性,如共享内存、缓存、寄存器等,来提高性能和降低内存需求。
  • Triton 可以与 PyTorch 无缝集成,让开发者可以在 PyTorch 中使用 Triton 编写自定义的操作。Triton 还可以支持其他框架和硬件,只需要提供一些基本的接口和信息。Triton 的目标是成为一个通用的并行计算平台,让开发者可以在任何硬件上运行任何模型。
  • Triton 已经被用于实现一些先进的机器学习模型,如 DeepSpeed、Megatron-LM、GPT-3 等。Triton 在这些模型中显示了显著的性能提升和内存节省。Triton 还可以用于实现一些新颖的算法,如 Flash Attention、Sparse Transformers 等。

也就是说 Nvidia 的优势并非完全由自己的技术带来,更多的原因在于软件生态,自然 Nvidia 在硬件驱动方面的优势也帮助了软件生态的构建,相比 AMD 来说。 如果 AMD 在驱动方面表现得更好,同时 PyTorch 这样的软件框架可以支持 AMD 的显卡的上线,那么对于 Nvidia 来说确实会构成不小的威胁。 但是从收益上来说,对于机器学习的科学家来说,GPU 是 AMD 还是 Nvidia 并不会有什么不同,或者对于 PyTorch 来说,移植到 AMD 的 GPU 会有更大的优势吗?也很难说,唯一的收益方是 AMD,或者说当 Nvidia 自己作死的时候。 这样看来,AMD 短期也不会获得什么优势。

Summarized by BingChat

This web page is an article that discusses how Nvidia’s CUDA monopoly in machine learning is breaking due to the arrival of PyTorch 2.0 and OpenAI’s Triton. The article explains why PyTorch became the dominant framework for machine learning, why memory bandwidth and capacity are the major bottlenecks for model training, and how PyTorch 2.0 and Triton enable more efficient and portable code generation for various hardware accelerators. The article also hints at a major win for one of Nvidia’s competitors at Microsoft and provides a link to a paid report for more details.

how CUDA is monopoly in machine learning

简单来说,Tesor CUDA is a platform developed by Nvidia that enables developers to use the parallel computing power of GPUs for general-purpose applications, such as machine learning. CUDA has been the dominant platform for machine learning, as it offers superior performance and supports a wide range of programming languages²³. However, this monopoly is starting to break as more and more people are switching to OpenAI’s Triton and PyTorch 2.0¹³.

Triton is a software that allows for the training of large-scale machine learning models on parallel computing hardware, such as GPUs, TPUs, or FPGAs. Triton is designed to be easy to use, portable, and efficient. It automatically generates optimized code for different hardware architectures and handles memory management and synchronization issues¹³.

PyTorch 2.0 is the latest version of the popular machine learning framework PyTorch, which is widely used by researchers and practitioners. PyTorch 2.0 introduces several new features, such as TorchDynamo and TorchInductor, that enable more efficient and portable code generation for various hardware accelerators. PyTorch 2.0 also supports both eager mode and graph mode, which are two ways of executing machine learning models¹.

These two software tools are disrupting Nvidia’s CUDA monopoly in machine learning by providing more flexibility, portability, and performance for machine learning developers. They also enable the use of other hardware accelerators besides Nvidia’s GPUs, which could increase the competition and innovation in the machine learning industry¹³.

Source: Conversation with Bing, 6/13/2023(1) SemiAnalysis on LinkedIn: How Nvidia’s CUDA Monopoly In Machine … https://www.linkedin.com/posts/semianalysis_how-nvidias-cuda-monopoly-in-machine-learning-activity-7020688520637804544-XZTe Accessed 6/13/2023. (2) How OpenAI and PyTorch Are Disrupting Machine Learning With NVidia’s CUDA. https://jackieomotalade.com/how-openai-and-pytorch-are-disrupting-machine-learning-with-nvidias-cuda/ Accessed 6/13/2023. (3) How Nvidia’s CUDA Monopoly In Machine Learning Is Breaking - SemiAnalysis. https://www.semianalysis.com/p/nvidiaopenaitritonpytorch Accessed 6/13/2023.

阅读原文 永久链接

412

Buy well. Buy once.

TL;DR

作者践行“Buy well. Buy once.”的理念,拥有较少但精心挑选的物品。他将一双无法修复的旧 Fiorentini + Baker 皮鞋寄给 Whitstable Craft Co. 的 James McKiven,后者将其改制成钱包,体现了物品的再利用价值和人际关系的意义。

主题

📦 极简主义和物品管理

作者践行极简主义生活方式,只拥有少量物品,并通过 Airtable 记录和管理个人物品。他引用 Tyler Durden 的话“The things you own end up owning you”来表达对物质的审慎态度。他认为过多的物品会造成混乱,并以美国家庭平均拥有 30 万件物品为例进行对比。

👞 投资优质耐用品

作者认同 John Wildsmith 的观点“You are either in your bed or in your shoes, so it pays to invest in both.”,强调投资优质耐用品的重要性。他珍视并保养自己的物品,以延长其使用寿命。

♻️ 物品的再利用和 Upcycling

作者将一双 2006/7 年购买的、已无法修复的 Fiorentini + Baker 皮鞋寄给 Whitstable Craft Co. 的 James McKiven。James 将鞋子的皮革 upcycling(升级改造) 成钱包,赋予了旧物新的生命和价值。

🤝 人际关系和社区

作者通过 Twitter 与 James McKiven 建立联系,并将旧鞋寄给他。James 不仅将鞋子改制成钱包,还给作者寄回了礼物,展现了社区互助和友善的客户服务。

💡 商业和人生哲思

作者从这次经历中引申出多个商业和人生哲思:

  1. 价值定位: 产品的价值取决于如何定义其解决的问题。
  2. 产品与故事: 将家族传承和故事融入产品,可以提升其价值。
  3. 产品关联: 不同产品之间可能存在天然联系,可进行捆绑或合作。例如:钱包和银行卡;可持续的 Upcycling 和社会事业。
  4. 交易与关系: 关系比交易更重要,是比金钱更重要的货币。
  5. 创造之路: 创造过程如同“无中生路”,需要不断探索。引用了 Antonio Machado 的话。
  6. 社交平台: Twitter 可以连接志同道合的人。
  7. Buy well. Buy once: 投资优质产品,长期来看更划算。作者的旧鞋变成钱包,正是这一理念的体现。

🏢 The Skiff 共享办公空间

作者提及 Brighton 最早的共享办公空间 The Skiff,并欢迎独立企业主和自由职业者参观。

总结

作者通过将旧鞋 upcycling 成钱包的故事,阐述了“Buy well. Buy once.”的理念,强调了物品的再利用价值、人际关系的重要性,以及由此引申出的商业和人生哲思。

阅读原文 永久链接

加载更早的文章