This file contains 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
# https://huggingface.co/google/siglip-base-patch16-256-multilingual | |
# install huggingface/transformers from source | |
# install optimum from this branch: https://github.com/huggingface/optimum/tree/xenova-add-siglip | |
# install onnx onnxruntime etc. | |
# Use T5 tokenizer fast and save_pretrained to get tokenizers.json | |
# https://github.com/huggingface/transformers/blob/main/src/transformers/models/t5/tokenization_t5_fast.py | |
# clone xenova/transformers.js and use the script to convert model |
This file contains 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
/** | |
* Testbed diagnostic script for NDN play. | |
* http://play.ndn.today/?testbed=1&script=https://gist.githubusercontent.com/pulsejet/15278a61b47df6066346d36f9071065a/raw/testbed-diagnostic.ts | |
* It will use FCH to connect to the nearest testbed node and ping all nodes. | |
* A table will be printed to the JS console with ping times. | |
*/ | |
import { connectToNetwork } from "@ndn/autoconfig"; | |
import { Endpoint } from "@ndn/endpoint"; | |
import { Forwarder } from "@ndn/fw"; |
This file contains 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 <ndn-cxx/face.hpp> | |
#include <iostream> | |
void | |
onData(const ndn::Interest&, const ndn::Data& data) | |
{ | |
std::cout << "Received Data: " << data << std::endl; | |
} | |
void |
This file contains 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/bash | |
sudo apt-get update | |
sudo apt-get remove -y libva ffmpeg | |
sudo apt-get install -y \ | |
autoconf libtool libdrm-dev xorg xorg-dev openbox \ | |
libx11-dev libgl1-mesa-glx libgl1-mesa-dev \ | |
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev \ | |
libxkbcommon-x11-dev libxcb-dri3-dev \ | |
vim cmake git nasm build-essential |
This file contains 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
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ | |
/* | |
* Copyright (c) 2012-2022 University of California, Los Angeles | |
* | |
* This file is part of ndn-svs, synchronization library for distributed realtime | |
* applications for NDN. | |
* | |
* ndn-svs library is free software: you can redistribute it and/or modify it under the | |
* terms of the GNU Lesser General Public License as published by the Free Software | |
* Foundation, in version 2.1 of the License. |
This file contains 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
See comments | |
Testing with ndncatchunks and ndnputchunks, 1gb file. With content store is very slow (few mbps), without content store is ~2gbps. |
This file contains 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
[nodes] | |
Texas: _ network=/world router=/Texas.Router/ | |
California: _ network=/world router=/California.Router/ | |
s1: _ network=/world router=/s1.Router/ | |
s2: _ network=/world router=/s2.Router/ | |
bob: _ network=/world router=/bob.Router/ | |
alice: _ network=/world router=/alice.Router/ | |
[links] | |
alice:bob delay=10ms | |
alice:s1 delay=10ms |
This file contains 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
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ | |
/* | |
* Copyright (c) 2012-2021 University of California, Los Angeles | |
* | |
* This file is part of ndn-svs, synchronization library for distributed realtime | |
* applications for NDN. | |
* | |
* ndn-svs library is free software: you can redistribute it and/or modify it under the | |
* terms of the GNU Lesser General Public License as published by the Free Software | |
* Foundation, in version 2.1 of the License. |
This file contains 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
FROM ubuntu:latest | |
WORKDIR /root | |
COPY rsat_SAT-Race08_bin.tar.gz . | |
RUN tar -xzvf rsat_SAT-Race08_bin.tar.gz &&\ | |
rm rsat_SAT-Race08_bin.tar.gz | |
WORKDIR /root/rsat_SAT-Race08_final_bin | |
CMD /bin/bash ./rsat.sh /dev/stdin |
NewerOlder