This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Core dependencies | |
| gymnasium==1.2.1 | |
| prettytable | |
| tqdm | |
| tyro | |
| torch>=2.7.0 | |
| warp-lang | |
| mujoco-warp @ git+https://github.com/google-deepmind/mujoco_warp@e605c406363805d949b75d50dd5ffb3d79bc3f70 | |
| mujoco | |
| trimesh>=4.8.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Package Version Editable project location | |
| ------------------------- ------------ ---------------------------------- | |
| absl-py 2.3.1 | |
| annotated-types 0.7.0 | |
| anyio 4.11.0 | |
| attrs 25.4.0 | |
| certifi 2025.10.5 | |
| charset-normalizer 3.4.4 | |
| click 8.3.0 | |
| cloudpickle 3.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GLOO_SOCKET_IFNAME=net1 | |
| python3 -m sglang.launch_server --model <model_name> --port 8000 --tp 16 --dist-init-addr <node1_ip>:6379 --nnodes 2 --node-rank 0 --trust-remote-code --host 0.0.0.0 | |
| python3 -m sglang.launch_server --model <model_name> --port 8000 --tp 16 --dist-init-addr <node1_ip>:6379 --nnodes 2 --node-rank 0 --trust-remote-code --host 0.0.0.0 | |
| export GLOO_SOCKET_IFNAME=<ifname> | |
| python3 -m sglang.launch_server --model <model_name> --port 8000 --tp 16 --dist-init-addr <node1_ip>:6379 --nnodes 2 --node-rank 1 --trust-remote-code --host 0.0.0.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import torch.nn as nn | |
| # an Embedding module containing 10 tensors of size 3 | |
| embedding = nn.Embedding(6, 3) | |
| # a batch of 2 samples of 3 elements each | |
| input = torch.LongTensor([[1, 2, 3],[0,2,3]]) | |
| loss=torch.sum(embedding(input)) | |
| print("embedding" ) | |
| print(embedding.weight ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 2.8.3) | |
| project(sync_example) | |
| find_package(catkin REQUIRED COMPONENTS message_filters roscpp sensor_msgs) | |
| catkin_package( | |
| CATKIN_DEPENDS message_filters roscpp sensor_msgs | |
| ) | |
| include_directories(${catkin_INCLUDE_DIRS}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import multiprocessing | |
| from math import ceil | |
| import torch | |
| from torch.utils import data | |
| from torchvision import datasets, transforms | |
| class FiniteRandomSampler(data.Sampler): | |
| def __init__(self, data_source, num_samples): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| printf "\n$(cat ascii.txt)\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.....[0;34;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.........[0;34;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;37;47m [0;34;40m [0;5;33;43m..[0;5;37;47m [0;34;40m [0;5;33;43m....[0;34;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;37;47m [0;34;40m [0;5;33;43m..[0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;33;41m.[0;5;33;43m..[0;34;40m [0;5;37;47m [0;37;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;34;40m [0;5;37;47m [0;5;33;41m...........[0;5;33;43m..[0;34;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;37;40m [0m | |
| [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m..[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| //function pointer | |
| typedef int (*MathMethod)(int, int); | |
| int Mul(int a, int b) { return a*b; } | |
| float Divide(int a, int b) { return a/b; } | |
| int Minus(int a, int b) { return a-b; } | |
| int Add(int a, int b) { return a+b; } |
NewerOlder