Skip to content

Instantly share code, notes, and snippets.

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
models = {
"stablelm": "stabilityai/japanese-stablelm-base-gamma-7b",
"chatntq": "NTQAI/chatntq-ja-7b-v1.0",
"mistral": "mistralai/Mistral-7B-v0.1",
"starling": "Nexusflow/Starling-LM-7B-beta",
"antler": "Elizezen/Antler-7B",
}

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@dhrp
dhrp / docker
Created June 8, 2013 02:15
this is the docker ascii logo
Docker logo
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
@lmakarov
lmakarov / lambda-basic-auth.js
Created August 30, 2017 19:15
Basic HTTP Authentication for CloudFront with Lambda@Edge
'use strict';
exports.handler = (event, context, callback) => {
// Get request and request headers
const request = event.Records[0].cf.request;
const headers = request.headers;
// Configure authentication
const authUser = 'user';
const authPass = 'pass';
@buth
buth / chef-server-reindex.sh
Created February 11, 2014 16:32
Rebuild the Chef-SOLR index from the database without dropping existing data.
sudo PATH=/opt/chef-server/embedded/bin:$PATH /opt/chef-server/embedded/service/erchef/bin/reindex-chef-server reindex
@buth
buth / docker-registry.yaml
Created July 10, 2014 20:53
Docker Registry on CoreOS with Cloud-Config
#cloud-config
users:
- name: nytint
coreos-ssh-import-url: https://s3.amazonaws.com/newsdev-ops/keys.json
groups:
- docker
write_files:
- path: /etc/nginx/nginx.conf
@buth
buth / cloud-config.yml
Last active May 2, 2024 05:39
HTTPS etcd with cloud-config
#cloud-config
coreos:
update:
reboot-strategy: etcd-lock
etcd:
discovery: https://discovery.etcd.io/<TOKEN>
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
key-file: /etc/etcd-ssl/key.pem
@buth
buth / gist:65708a902828a464ab54
Created November 13, 2014 18:03
Cloud-init script for setting up Elastic Search on Ubuntu
#!/bin/bash
echo "127.0.0.1 `hostname`" >> /etc/hosts
apt-get update
apt-get -y upgrade
apt-get -y install openjdk-7-jre
cd /tmp
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.deb
dpkg -i elasticsearch-1.1.0.deb
echo 'ES_HEAP_SIZE=6g' >> /etc/default/elasticsearch
echo 'cluster.name: awesomecluster
@buth
buth / gist:9fcef2c106e3cc630c16
Created February 12, 2015 21:46
MongoDB authenticated Replica Set via environment variables
[Unit]
Description=mongodb
Requires=docker.service
After=docker.service
[Service]
Restart=always
RestartSec=5s
TimeoutStartSec=0
KillMode=none
@buth
buth / cloud-config.yml
Created July 15, 2015 18:17
Autmoatically format and mount a drive with CoreOS Cloud-Config
#cloud-config
coreos:
units:
- name: format-drive.service
command: start
content: |
[Unit]
Description=Formats the drive
After=dev-xvdc.device