We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import torch import trak from trak.projectors import ProjectionType, AbstractProjector, CudaProjector print("trak.test_install:", trak.test_install(use_fast_jl=True)) grad_dim = int(1e6) projector = CudaProjector( grad_dim=grad_dim, proj_dim=32768, seed=42, proj_type=ProjectionType.normal, device='cuda:0', max_batch_size=8, ) grad = torch.randn(8, grad_dim, device='cuda:0') proj = projector.project(grad, model_id=0) print(proj)
pip install scikit-learn matplotlib einops ipykernel pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 conda install cuda=12.1 -c nvidia conda install cuda-nvcc=12.1 -c nvidia -y conda install cuda-toolkit=12.1 -c nvidia -y export CUDA_HOME=$CONDA_PREFIX export PYTHONPATH=$CONDA_PREFIX/lib/python3.x/site-packages:$PYTHONPATH pip install traker[fast]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: