python installed: 3.10.6
python -m venv unsloth
unsloth\scripts\activate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
| from unsloth import FastLanguageModel, is_bfloat16_supported | |
| import torch | |
| from unsloth.chat_templates import get_chat_template, standardize_sharegpt, train_on_responses_only | |
| from datasets import load_dataset | |
| from huggingface_hub import login | |
| from trl import SFTTrainer | |
| from transformers import TrainingArguments, DataCollatorForSeq2Seq, TextStreamer | |
| def formatting_prompts_func(examples): | |
| convos = examples["conversations"] |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| bash.exe -c "sudo service apache2 restart" | |
| bash.exe -c "sudo service mysql restart" | |
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; |
Hyper-V Server does not include much in the way of graphical tools, but third-party alternatives can be installed.
I found a disturbing lack of basic instructions for using Hyper-V Server 2019, so it is my hope that this guide is useful to somebody.
Before starting this guide, enable Remote Desktop support in Hyper-V Server using the built-in configuration menu. If you connect to the Hyper-V Server with Remote Desktop, it will make it easy to copy and paste text (and later, files) from a normal Windows desktop machine.
| #!/usr/bin/env swift | |
| // | |
| // REPL.swift | |
| // | |
| // Created by nuomi1 on 8/5/18. | |
| // Copyright © 2018年 nuomi1. All rights reserved. | |
| // | |
| import Foundation |
Add the following chunk to your existing ISC dhcpd.conf file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup