Skip to content

Instantly share code, notes, and snippets.

View sawyerbutton's full-sized avatar
🦄
I may be slow to respond.

sawyerbutton

🦄
I may be slow to respond.
View GitHub Profile

《AI工程核心算法拆解》课程设计


课程定位

聚焦技术实现细节,通过算法原理→代码实现→工业级优化的递进式教学,培养学员的深度技术落地能力。技术权重占比85%,商业与工程占比15%。


浮点数类型初探

在深度学习中有多种浮点数类型,在本文中将会对这些浮点数类型进行概述

FP80

  • 首先介绍一下大名鼎鼎的IEEE 754(电气和电子工程师协会 (IEEE) 于 1985 年制定的浮点运算技术标准)
  • FP80是扩展精度的二进制浮点格式
  • 始于 Intel 8087 数学协处理器,背景知识是那时候的CPU还不能进行浮点计算,需要一个额外的协处理器进行浮点运算
  • FP80的实现包括

Positional Encoding in Transformer

为什么需要 Positional Encoding

  • 在 Transformer 的 encoder 和 decoder 中对于序列之间的相关性的表达是通过 Attention 机制实现的
  • Attention 机制强在可以将当前的选中位置的序列信息与整个序列中的信息构建起相关性,但是这份相关性是不关注序列的语序的,相关性的处理操作是平行进行,或者说并行的
  • 但是在传统的基于 RNN 的序列模型(包括升级版的 LSTM 和 GRU)中,输入的序列顺序是模型的内置特性,这些模型能自然地处理输入之间的时间关系
  • Transformer 中接收的是具备时序关系的序列信息,但是只依靠Attention机制无法体现时序的概念
  • 因此需要一个特殊的概念来表示序列中顺序的概念

Deploy Angular to Github Ghpages

  1. Create a GitHub repository for your project and pushed the code to the main/master branch.
  2. Create a GH-pages branch and push to origin
git branch gh-pages
git checkout gh-pages
git push origin gh-pages

什么是 Prompt

From a news

image

什么是 Prompt

人类说话的时候是见人下菜的,见人说人话,见鬼说鬼话,会结合当前的环境进行调整 但是对于AI而言,她是没有没有环境的前提假设的,所以我们需要给AI一个环境来帮助他理解人类的处境

Nx, Next.js 和 Module Federation

目录

  • 微前端
  • Nx 和 MonoRepo
    • 优点
    • 缺点
  • Next.js
  • Nx + Next.js
<Title for Issue>
## Title
## Description
## Expected
## Issue

Input Unit test

it('should correctly render the passed @Input value', () => {
  component.message = 'Enter a new title'; // input value modify
  fixture.detectChanges(); // make change
  const compiled = fixture.debugElement.nativeElement; // compiled component
  expect(compiled.querySelector('p').textContent).toBe('Enter a new title'); // component content verify
});

Output Unit test

this.applicationService.getApplicationTableData().subscribe(data => {
const tempList = [];
data.forEach((item, index) => {
const countLink = item.applicationCount;
this.applicationService.getApplicationCountData(countLink).subscribe(count => {
tempList.push({
key: (index + 1).toString(),
linkUrl: item.linkUrl,
applicationName: item.applicationName,
// applicationCount: item.applicationCount,