neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
R용 가속 배열 연산과 코드 변환을 제공하며 XLA 컴파일러로 JAX와 동일하게 배열 기반 수치 프로그램을 즉시 최적 실행 파일로 컴파일한다
Accelerated array computing and code transformations for R. Numerical programs operating on arrays can be just-in-time compiled to optimized executables via XLA -- the same compiler that powers JAX an
개발 도구R · PythonGitHub @r-xla온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Accelerated array computing and code transformations for R
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Package website: release \|
dev
Accelerated array computing and code transformations for R, allowing you
to run numerical programs at the speed of light. The package supports
just-in-time (JIT) compilation for very fast execution and reverse-mode
automatic differentiation. Programs can run on CPU and NVIDIA GPU.
See the installation
guide for more
details, including prebuilt Docker images.
{anvl} makes numerical R code run fast on CPUs and GPUs, and computes
gradients of your functions automatically. It aspires to be for R what
JAX is for Python.README 전문 보기 ↗Package website: release | dev
Accelerated array computing and code transformations for R, allowing you to run numerical programs at the speed of light. The package supports just-in-time (JIT) compilation for very fast execution and reverse-mode automatic differentiation. Programs can run on CPU and NVIDIA GPU.
install.packages("anvl", repos = c("https://r-xla.r-universe.dev", getOption("repos")))
Afterwards, install the additional dependencies:
anvl::install_anvl()
See the installation guide for more details, including prebuilt Docker images.
{anvl} makes numerical R code run fast on CPUs and GPUs, and computes gradients of your functions automatically. It aspires to be for R what JAX is for Python.
There are three core ideas:
gradient(), which returns
the derivative of a function as another R function.Moreover, the package is designed to be extensible. As the package is written in R, new primitives and transformations can be added without needing a lower-level language.
We define an R function operating on AnvlArrays, which is the primary
data type of {anvl}. It can be executed in either eager mode (each
operation is performed immediately) or jit mode (the whole function is
compiled into a single executable via jit()).
library(anvl)
f <- function(a, b, x) {
nv_mul(a, x) + b
}
a <- nv_scalar(1)
b <- nv_scalar(2)
x <- nv_scalar(3)
# Eager mode
f(a, b, x)
#> AnvlArray
#> 5
#> [ CPUf32{} ]
# JIT mode
f_jit <- jit(f)
f_jit(a, b, x)
#> AnvlArray
#> 5
#> [ CPUf32{} ]
Through function transformation, we can also obtain the gradient of the above function.
g_jit <- jit(gradient(f, wrt = c("a", "b")))
g_jit(a, b, x)
#> $a
#> AnvlArray
#> 3
#> [ CPUf32{} ]
#>
#> $b
#> AnvlArray
#> 1
#> [ CPUf32{} ]
By default, floats use f32 precision in {anvl} because of its speed
advantage on GPUs. Changing this default to double-precision is possible
via the anvl.default_dtypes option:
with_default_dtypes(c(float = "f64"), {
nv_add(pi, 1)
})
#> AnvlArray
#> 4.1416
#> [ CPUf64{} ]
To learn more, see the Get Started article.
| OS | Architecture | CPU | CUDA |
|---|---|---|---|
| Linux | x86_64 | ✓ | ✓ |
| Linux | arm64 | ✓ | ✓ |
| Windows | x86_64 | ✓ | WSL2 |
| Windows | arm64 | ✗ | ✗ |
| macOS | x86_64 | ✓ | ✗ |
| macOS | arm64 | ✓ | ✗ |
✓ supported · WSL2: via the Windows Subsystem for Linux · ✗ not supported