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
#!/usr/bin/env bash | |
# Set power limits on all NVIDIA GPUs | |
# Make sure nvidia-smi exists | |
command -v nvidia-smi &> /dev/null || { echo >&2 "nvidia-smi not found ... exiting."; exit 1; } | |
# adjust as needed | |
POWER_LIMIT=270 | |
# modified, this line relies on the assumption that all GPUs are the same 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
[Unit] | |
Description=NVIDIA GPU Set Power Limit | |
After=syslog.target systemd-modules-load.service | |
ConditionPathExists=/usr/bin/nvidia-smi | |
[Service] | |
User=root | |
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" | |
ExecStart=/usr/local/sbin/nv-power-limit.sh |
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
#!/usr/bin/env bash | |
# Set power limits on all NVIDIA GPUs | |
# Make sure nvidia-smi exists | |
command -v nvidia-smi &> /dev/null || { echo >&2 "nvidia-smi not found ... exiting."; exit 1; } | |
POWER_LIMIT=280 | |
MAX_POWER_LIMIT=$(nvidia-smi -q -d POWER | grep 'Max Power Limit' | tr -s ' ' | cut -d ' ' -f 6) |
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
# main | |
llama-index | |
langchain |
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
package com.openathena; | |
import org.w3c.dom.CDATASection; | |
import org.w3c.dom.Comment; | |
import org.w3c.dom.Document; | |
import org.w3c.dom.Element; | |
import org.xmlpull.v1.XmlSerializer; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; |
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
Contributor License Agreement | |
The following terms are used throughout this agreement: | |
You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it. | |
Project - is an umbrella term that refers to any and all Theta open source projects. | |
Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work. | |
Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Theta, contributors or maintainers. | |
1. Grant of Copyright 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
import java.util.Scanner; | |
import java.util.ArrayList; | |
import java.util.InputMismatchException; | |
import java.util.Dictionary; | |
import java.util.Hashtable; | |
class Main { | |
public static void main(String args[]){ | |
Scanner beepBoop = new Scanner(System.in); |
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
#!/usr/bin/env python3 | |
""" | |
supervisely_json_to_yolo_txt.py | |
This script is intended to convert the Javascript Object notation based Supervisely labels from the FSOCO dataset to a txt-based yolo format we can use for training | |
The Supervisely label format specifies the top-left and bottom-right corners of the object in number of pixels from the origin (at the top left of the image) | |
The yolo label format specifies the object class as an integer, followed by <x_center> <y_center> <width> <height> where each are a propotion (float values from 0 to 1, exclusive) of the total image width or height, measured from the origin at the top left corner |
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
# NMEA to GPX converter | |
# Peter Pearson | |
# version 0.11 | |
import csv | |
import sys | |
import time | |
from time import strftime | |
def convert_dms_to_dec(value, dir): |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# This is a script for converting coordinates from a protrails.com trail description into a | |
# gpx file that can be loaded onto a GPS device. | |
# In order to use it, copy and paste the coordinates from the protrails map page (not the | |
# main page for the hike, but the page with the link "Interactive GPS Topo Map") into an input | |
# file. Run the script with # python protrails_to_gpx.py <input file> <output file> <route name> | |
from lxml import etree as tree |
NewerOlder