当前位置:网站首页>JAX的深度学习和科学计算
JAX的深度学习和科学计算
2022-07-01 07:03:00 【ejinxian】
JAX 框架:能使用GPU加速的,支持自动微分的numpy。numpy在科学计算领域十分普及,但在深度学习领域。
Jax 是 Autograd 和 XLA 的结合用以提供高性能机器学习研究。作为 Autograd 的更新版本,JAX 可以自动微分原生 Python 和 Numpy 函数。可通过 loops、branches、recursion 和 closures,进行微分,并且能够对导数的导数求导。
2020 年,DeepMind 宣布使用 JAX 来加速其研究。越来越多来自谷歌大脑(Google Brain)和其他机构的项目也都在使用 JAX

JAX 是一个非常有前途的项目,并且用户一直在稳步增长。JAX 已经在深度学习、机器人 / 控制系统、贝叶斯方法和科学模拟等诸多领域得到了广泛应用
AX 的定位科学计算(Scientific Computing)和函数转换(Function Transformations)的交叉融合,具有除训练深度学习模型以外的一系列能力,包括如下:
- 即时编译(Just-in-Time Compilation)
- 自动并行化(Automatic Parallelization)
- 自动向量化(Automatic Vectorization)
- 自动微分(Automatic Differentiation)
JAX 的速度比 NumPy 快了 N 个数量级,JAX 使用的是 TPU,NumPy 使用了 CPU,以此强调 JAX 的速度上限远高于 NumPy
JAX 包含了一个可扩展系统来实现这样的函数转换,有四种典型方式:
Grad() 进行自动微分;
Vmap() 自动向量化;
Pmap() 并行化计算;
Jit() 将函数转换为即时编译版本
科学计算

深度学习

深度学习入门

参考:
Why You Should (or Shouldn't) be Using Google's JAX in 2022 (assemblyai.com)
边栏推荐
猜你喜欢

8 figures | analyze Eureka's first synchronization registry

Fix the problem that the AI video intelligent platform easycvr device video cannot be played

盘点华为云GaussDB(for Redis)六大秒级能力

解决kaniko push镜像到harbor时报错(代理导致):unexpected status code 503 Service Unavailable
![[network planning] (I) hub, bridge, switch, router and other concepts](/img/7b/fcef37496517c854ac1dbfb35fa3f4.png)
[network planning] (I) hub, bridge, switch, router and other concepts

JSP - 分页

Figure out the difference between event coordinates screenx, clientx, pagex and offsetx

【LINGO】求无向图的最短路问题

Insufficient free space after clearing expired cache entries - consider increasing the maximum cache space

如何画产品架构图?
随机推荐
【LINGO】求无向图的最短路问题
Docker 安装部署Redis
ctfhub-端口扫描(SSRF)
Problem solving: officeexception: failed to start and connect (I)
电脑有网络,但所有浏览器网页都打不开,是怎么回事?
Esp32 monitors the battery voltage with ULP when the battery is powered
在券商账户上买基金安全吗
MySQL data type learning notes
如何进入互联网行业,成为产品经理?没有项目经验如何转行当上产品经理?
比赛即实战!中国软件杯发布全新产业创新赛项,校企可联合参赛
DC-4 target
【LINGO】求解二次规划
(I) apple has open source, but so what?
Is it reliable to open an account on the compass with your mobile phone? Is there any potential safety hazard
运维管理有什么实用的技巧吗
為什麼這麼多人轉行產品經理?產品經理發展前景如何?
Easynvs cloud management platform function reconfiguration: support adding users, modifying information, etc
开源了!文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
ctfshow-web354(SSRF)
如何通过cdn方式使用阿里巴巴矢量图字体文件