<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shenghu Yang on Medium]]></title>
        <description><![CDATA[Stories by Shenghu Yang on Medium]]></description>
        <link>https://medium.com/@shenghuyang?source=rss-b82021123b5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*imteccIL_q3nL5yH.</url>
            <title>Stories by Shenghu Yang on Medium</title>
            <link>https://medium.com/@shenghuyang?source=rss-b82021123b5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:42:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shenghuyang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AI meets Crypto, a view from crypto and infra background]]></title>
            <link>https://medium.com/@shenghuyang/ai-meets-crypto-a-view-from-crypto-and-infra-background-162f3e8fad90?source=rss-b82021123b5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/162f3e8fad90</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Shenghu Yang]]></dc:creator>
            <pubDate>Thu, 09 May 2024 23:29:50 GMT</pubDate>
            <atom:updated>2024-05-10T04:50:08.220Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Special thanks to Lei Tang, Davide Crapis, Leo Chen, Siyuan Han, Bo Yu for feedback and review.</em></p><p>I left Coinbase in March after spending 3 years there building the crypto platform for its 100M+ customers, primarily on Identity and Onboarding solutions for both web2 and web3 products.</p><p>In the past two months, without a full time job, I got more time with my family, doing gardening, testing Tesla FSD edge cases and spending hundreds of hours exploring AI, particularly LLMs. This current AI wave seems more real than ever, given my background in crypto, I ponder what it means when AI meets Crypto. I asked myself several questions and below are the answers I got so far.</p><p><strong>1: Will AGI Be A Reality? If Yes, When?</strong></p><p>It depends on how we define AGI (Artificial General Intelligence). To me AGI means human-like reasoning, learning, problem solving and continuous improvements. It’s a matter of when not if, though I won’t spend too much time speculating about the timing.</p><p>As a matter of fact, in the past 18 months or so, one branch of AI — Large Language Models (LLMs) — have made major technology and adoption breakthroughs. ChatGPT reached 100M users in just 2 months, the prior fastest one was Tiktok in 9 months. On the flip side, hallucination remains a major technical gap, besides all these ethical, societal, regulatory and geo-political concerns.</p><p>I fine-tuned and run a few open source models myself locally on my Apple M2 silicon, even the most performing one — LlaMa3 (8B) — often responded to me with “logical but wrong” hallucinating answers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vvepzjQcR1LYLo7U" /><figcaption><em>Figure 1. Quantized LlaMa3–8B believes that Sam Altman is also the CEO of FTX, the now bankrupted crypto exchange.</em></figcaption></figure><p>Obviously there is more work to do before AGI, it might take years or even decades. Nevertheless AI gets more powerful everyday, it can do more types of work and do them more intelligently, see a diagram from <a href="https://davidecrapis.notion.site/Davide-Crapis-Home-00b510473e1240629457a73941b64c32?p=23aa09799b9c4620a1a287926bcfd6af&amp;pm=c">The Internet of Agents</a> by Davide Crapis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9bbvpVjnLuJYaWPk" /><figcaption><em>Figure 2. Left: a concept timeline of AI evolution with increasing performance. Right: block diagram of activities for humans and different forms of AI.</em></figcaption></figure><p><strong>2: What Are The Roadblocks To AGI?</strong></p><p>We often hear from people like Sam Altman and Elon Musk that AI scaling law will soon or eventually be constrained by compute, energy and/or training data before AGI. For sure we need a longer term vision and roadmap to revolutionize the GPU and energy industry (e.g. fusion energy), and (using AI to) generate unlimited, diversified, high quality synthetic training data.</p><p>However, these seemingly new problems can potentially be solved or at least mitigated by existing solutions. In the short to mid term, to me this is an efficiency game in every step of the AI process. We should and must do performance profiling and optimization on training, fine-tuning and inference, e.g. more efficient data and model parallelization, cutting every waste in GPU memory and bandwidth consumptions, quantization, batch and offline inference processing etc. The good news is, Meta’s recent well received <a href="https://ai.meta.com/blog/meta-llama-3/">LlaMa3</a> LLM is a perfect example of efficiency meets performance.</p><p>Another seemingly new problem around the globe GPU / energy shortage, my understanding is it’s more of a distribution problem than an overall supply problem. We should and can find an existing solution to take advantage of all those idle GPUs across data centers and energy across regions, without a longer term GPU rearchitect and revamping of the globe energy network. Crypto could help here (see later discussion).</p><p>In addition, there are broader ethical, social, regulatory, geopolitical and interdisciplinary implications and challenges, which I will leave to future discussions.</p><p><strong>3: Large Or Small Language Model?</strong></p><p>Large Language Models are getting larger and larger. GPT4 has 1.75 trillion parameters, fed with 15 trillion tokens and was trained by 25,000 NVIDIA A100 GPUs. The soon to come GPT5 will certainly out number these, people were speculating massive $2.5B training cost for GPT5.</p><p>However, models don’t always have to go bigger. Instead of a monolithic approach, we could adopt a <strong>modular approach</strong> just like any other modern computer systems. We could use a handful of medium/large size models, e.g. LlaMa3 70B, as base models, and build much smaller domain specific incremental models on top of them. During inference, these incremental models can share and connect through the same base model. In this way, one application can access multiple incremental models and base models at the same time. Hence <strong>not all these companies have to build their own super, costly and largely overlapped generalized model, instead we can keep expanding the overall model capability with an open community, building and sharing base models and incremental domain specific models on top of each other. </strong>(see the below diagram)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gX19A58nVxJN2f7O" /><figcaption><em>Figure 3: Smaller domain specific models build on top of and connect through the same shared base model.</em></figcaption></figure><p>Moreover, companies like Apple and Microsoft are experimenting in a different direction. Instead of LLMs, they are building SLMs (Small Language Models), e.g. <a href="https://huggingface.co/apple/OpenELM">Apple OpenELM</a> (270M, 450M, 1.1B, 3B) and <a href="https://news.microsoft.com/source/features/ai/the-phi-3-small-language-models-with-big-potential/">Microsoft Phi-3 Mini</a> (3.8B), both trying to balance model size and performance. They may not be as powerful and general as LLMs like ChatGPT 4, Claude 3 Opus, let alone the incoming GPT 5/6, but they could be very suitable for cases like edge AI on smaller IoT devices without reliable internet connection, or privacy sensitive scenarios like Amazon Alexa or Google Home or certain highly regulated industry where data needs to be kept on premises. SLMs inference can be 100% hosted on edge like a mobile device, without touching any remote servers or internet at all.</p><p><strong>4: Does AI Need Crypto? And Vice Versa.</strong></p><p>While AI does not inherently “need” crypto to function, and vice versa, the integration of these technologies could lead to significant advances in both fields. Each can enhance the capabilities and address the limitations of the other, potentially leading to more robust, efficient, and trustworthy systems.</p><p><strong>What can Crypto do for AI?</strong></p><ul><li><strong>Decentralized Data and Compute for AI Training</strong>: Crypto and blockchain technology can facilitate the creation of decentralized data and GPU marketplaces. By using crypto to incentivize data and GPU sharing, AI developers can potentially access a wider array of high-quality, real-world data and underutilized precious GPUs, which is crucial for training more robust and generalized models.</li><li><strong>Incentivizing Model Development and Sharing</strong>: For now, there is no viable business model for open source AI models, hence the top model developers, e.g. OpenAI and Anthropic, go with close source to monetize their models through directly serving customers via API. Crypto can build incentives for open source model developers, by tokenizing models, enforcing provenance and profit sharing between model developers, model hosting providers and marketplaces.</li><li><strong>Counter Bots and Deep Fakes</strong>: AI has made the Turing test failing its job to distinguish bots from humans. In a world with abundance of content made possible by GenAI, crypto can drive proof of personhood, track the provenance and hence enforce accountability. World ID is a right step in this direction.</li><li><strong>Enhanced Security and Privacy</strong>: Crypto-related technologies, particularly those involving encryption, can enhance the security and privacy of AI systems. For instance, homomorphic encryption allows AI systems to process encrypted data, including input and output, without needing to decrypt it, thus preserving privacy.</li></ul><p><strong>What can AI do for Crypto?</strong></p><ul><li><strong>Fraud Detection and Blockchain Security</strong>: AI can significantly improve the security of cryptocurrency networks by detecting patterns indicative of fraudulent activities or potential security breaches of smart contracts and wallets. Machine learning models can analyze transactions at a scale and speed that are impractical for humans, identifying anomalies that could indicate malicious behavior.</li><li><strong>Enable Intent based Smart Contracts</strong>: LLM can enable intent based smart contracts, which users only need to give smart contracts high level goals and constraints in natural language, and leave smart contracts to plan &amp; break them down to machine friendly tasks and then automatically figure out the right agents and optimal time to execute.</li><li><strong>Market Predictions and Trading Bots</strong>: AI, especially machine learning and predictive analytics, is extensively used in developing trading bots that can analyze market trends and execute trades at optimal times.</li></ul><p><strong>5: What Are The Challenges To Bring AI On-chain?</strong></p><p>Let’s start with a quick comparison between AI and Crypto for their default settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*T0eOyw6D48E3i__MbDBSbw.png" /></figure><p>As you can see, AI and Crypto defaults are different or even quite opposite in most dimensions. Bringing AI on-chain presents a set of unique challenges that stem from the fundamental differences in how these technologies are designed and operated. Here are some of the key challenges and possible solutions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*HI-CU3i2FowZK3fxQsLwxA.png" /></figure><p><strong>Conclusion: (<em>Generated by chatGPT</em>)</strong></p><p>As we stand at the crossroads of two revolutionary technologies, AI and crypto, the potential for transformative change is immense. The integration of AI’s deep learning capabilities with blockchain’s secure and decentralized framework promises to redefine how we handle data, execute transactions, and build trust in digital interactions. However, as outlined, challenges such as scalability, verifiability, data privacy and regulatory compliance remain formidable but not insurmountable.</p><p>While the technical hurdles are significant, the opportunities — for efficiency, security, and new business models — are profound. Innovations like intent-based smart contracts and enhanced security for crypto platforms highlight just the beginning of what’s possible when these technologies converge. However, as we push forward, a balanced approach that considers ethical, social, and economic implications is crucial.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=162f3e8fad90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EOS BPC: Minimal Votes to qualify 100 eos / day]]></title>
            <link>https://medium.com/@shenghuyang/eos-bpc-guaranteed-votes-to-qualify-100-eos-day-5e31cb1e53d5?source=rss-b82021123b5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e31cb1e53d5</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Shenghu Yang]]></dc:creator>
            <pubDate>Sat, 05 May 2018 19:48:59 GMT</pubDate>
            <atom:updated>2018-05-05T19:52:20.885Z</atom:updated>
            <content:encoded><![CDATA[<p>On May 4th, <a href="https://medium.com/u/1d906c7421de">Daniel Larimer</a> introduced EOSIO Dawn 4.0 <a href="https://medium.com/@bytemaster/introducing-eosio-dawn-4-0-f738c552879">here</a>. In 4.0, there are many code cleanup and stabilization efforts, e.g. POC of Inter-Blockchain-Communication, time of current block instead of head block, new Market-based RAM allocation model and Header-only Validation etc.</p><p>It also refines the producer pay model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*VU8od6xpjgftZeCJsKI5Qw.png" /></figure><p>As a block producer candidate, if you ever wonder how many votes you need to guarantee a qualification of 100 EOS / day, the answer is: you will need at least <strong>0.49% of all votes</strong>, and assuming every EOS token votes for 30 BPCs at maximal, you need <strong>146,000,000.00 votes. </strong>Here is the math:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*0R0BPUclqIz4Uwgy3uePBQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e31cb1e53d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It Matters How We Get There]]></title>
            <link>https://medium.com/@shenghuyang/it-matters-how-we-get-there-c7f8bc88445f?source=rss-b82021123b5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7f8bc88445f</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[humanity]]></category>
            <category><![CDATA[ridesharing]]></category>
            <category><![CDATA[sustainable-development]]></category>
            <category><![CDATA[electric-car]]></category>
            <dc:creator><![CDATA[Shenghu Yang]]></dc:creator>
            <pubDate>Tue, 05 Sep 2017 00:19:12 GMT</pubDate>
            <atom:updated>2017-09-10T18:23:07.005Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OxHyX2yK7sk8sgMe5Cmgg.png" /></figure><h3>1. Why bother to write this?</h3><p>There are endless conversations about “whether it matters how you get there” ever since the beginning of mankind. I understand it’s almost impossible to end this debate any time soon, so I will try to put it in context to make it easier.</p><p>Specifically, now I am working in transportation industry, I started to think this argument from a slightly different but more concrete angle, which is “<strong>whether it matters how you get from point A to point B</strong>”.</p><p>I was and continue to be a strong believer of “it does matter”. I will explain here why it matters to me, and to you as well, and what we can do as a team going forward.</p><p><strong>Please note that the views expressed here are my own, and are based on my personal experience and observations. These views are not the views of my employer, or directly related to my current position.</strong></p><h3>2: Who am I?</h3><p>My name is Shenghu Yang and I am a software engineer at Lyft since early 2015.</p><p>Like many of us in California, I carry a label of “immigrant”. Actually who doesn’t? I was born in Southern China and landed at Pittsburgh, PA when I was 24. After two years in Carnegie Mellon university, I decided to pursue my version of American dream as an engineer in Silicon Valley.</p><p>Now I am at my early 30s. As father of two, I started to think a lot on how to educate my 6-year-old daughter and 3-year-young son. One thing I am actively thinking is how to answer them when someday they ask me “<strong>Dad, does it matter how we get there?</strong>”.</p><h3>3: Why it matters to me?</h3><p>Ever since I can remember, my father kept telling and demonstrating me a Chinese old saying, which is “<strong>Gentlemen love fortune, but in a proper way</strong>”. Throughout my school years, I was repeatedly educated that “<strong>Success is a journey, not a destination</strong>. The doing is often more important than the outcome.” I took those words seriously and completely, and it became the foundation of who I am.</p><p>My father died from lung cancer couple of years back. I still clearly remember all those heart broken days. Large part of this misfortune I think is due to air pollution caused by greedy and unsustainable economic development in my home town.</p><p>It is my personal loss due to greedy people who don’t care about how they get there. There are way more similar examples out there. However, there must be a better way to get there, which <strong>might take a bit longer, but</strong> <strong>once we get there it will sustain in an even longer term</strong>.</p><h3>4: It matters to you, you may not realize it yet</h3><p>For those who think that it doesn’t matter how you get there, I don’t think they are not against crime, violation or any other unlawful behavior. In other words, <strong>“be lawful” matters to you</strong>, hence I will simply skip this part.</p><p>Let’s focus on the so-called “<strong>gray areas</strong>”, where people might be on an assumption that the nicer ways would cost them more time and/or money, drag their career growth or eventually fail their business goal.</p><p>Yes, they are right, but only to some extend. Being “nicer” guys might cost you all of the above, but remember “bad” guys quickly lose their friends, stall &amp; fail their career and screw up their business. <strong>If your destiny is the same anyway, why not having a more elegant journey</strong>.</p><p>Take a step back, think it in a longer term (if not life long), it might seem you are laggard at the beginning, but what really makes you is not the first mover advantage. <strong>Counter intuitively, it is the last mover who stay there long,</strong> for example Facebook was not the winning social network at the beginning, Google was not the winning search engine at the beginning neither. None of them is first mover, but both of them took the right amount of time &amp; patience to build their network, scale, technology and most importantly brand, and eventually become the last major movers in their own fields.</p><h3>5: All right, but there is not much I can do</h3><p>People might think that I am just a small fish, while those big things can only come from big ones. Wrong, absolutely wrong!!! Let me show you why.</p><p>It’s perfectly reasonable that we do not donate 95% of our fortune as Bill and Melinda Gates do (5% to them is still ~4B). It’s perfectly reasonable that we do not devote ourselves to a transition to sustainable energy like Elon Musk does (as we have other important agenda).</p><p>However, have you thought why those big ones are working relentlessly on the mission to a better world? It’s because of you, <strong>all those influencers are just the reflection of our core values as a society</strong>. Honestly I would like to <strong>call them “influencees” more than “influencers”. </strong>It’s all those small things we do influence those with bigger power. By small things I mean it could be as basic as I buy product/service from companies which care more about our community; as little as my Facebook friends like a page of renewable energy; as simple as my colleague packs some food at restaurant and brings them to homeless on his way home. Slowly it could grow to as bigger as my roommate chooses donating his money over buying his own house.</p><p>I used to believe that “<strong>Money can’t buy you happiness</strong>”, where the point there is don’t be greedy and there is a happy world out there beyond money.</p><p>While I continue to believe the above logic, I also start to believe that “<strong>If money can’t buy you happiness, you don’t spend it right</strong>”. Here the point is you can buy other people in need happiness which ultimately translates to your own happiness.</p><h3>6: It matters how you get from point A to Point B</h3><p>As I said, I am working in transportation industry, so I would like to talk it a bit more as I have more context on it.</p><p>The big trend now is moving towards <strong>a sustainable transportation. Unsurprisingly, every one of us can contribute</strong>. <strong>You can definitely walk more, bike more and take more public transit,</strong> and you don’t have to dump your gasoline car today and buy an electric one if it costs you more money or hassle. You don’t have to go with ride-sharing if it doesn’t make a whole lot of economic sense. Even if you do choose ride-sharing, you don’t have to choose one over other platforms simply because one platform, say Lyft (or other based on your own judgement), has a nicer culture or brand (time &amp; money matter too if not more).</p><p><strong>What matters is not that you spend more just for good will; What matters here is all of us share the same core value of sustainable transportation</strong>, e.g. given same or similar cost implication, we all choose electric vehicle over gasoline cars, ride-sharing (or carpooling) over car ownership (much lower utilization means more wasted resource).</p><p>Finally, speaking of ride sharing, let’s go back to the question of “whether it matters how we get from point A to point B”. I hope by now we all share an answer that “it matters”, by this <strong>it absolutely doesn’t mean you should spend more or wait longer, it means that you care about sustainable energy, culture, brand and experience, without sacrificing your money and time</strong>.</p><h3>7: The end</h3><p>It matters how we get this far, and how we get from here to our next destination. Together we are marching towards a better world. Small thing has much bigger impact than you might think.</p><p><strong>Remember, you are beautiful.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7f8bc88445f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>