Virtual serial line on linux with socat, python server & client
socat -d -d pty,raw,echo=0,link=/tmp/cryocon_simulator pty,raw,echo=0,link=/tmp/cryocon
#agentic.py | |
# https://discord.com/channels/1192246288507474000/1192247523604185189/1229828123764330577 | |
from pydantic import BaseModel, Field | |
from typing import List | |
class Agent(BaseModel): | |
variable: str = Field(description="snake cased variable based off the agents role") | |
role: str = Field(description="The role of the agent", examples=["Senior Project Manager","Lead Developer","Senior Architect"]) |
models: | |
- model: NousResearch/Llama-2-70b-hf | |
# no parameters necessary for base model | |
- model: wanglab/ClinicalCamel-70B | |
parameters: | |
weight: 0.08 | |
density: 0.45 | |
- model: epfl-llm/meditron-70b | |
parameters: | |
weight: 0.08 |
models: | |
- model: NousResearch/Nous-Hermes-Llama2-13b | |
# no parameters necessary for base model | |
- model: starmpcc/Asclepius-Llama2-13B | |
parameters: | |
weight: 0.08 | |
density: 0.45 | |
- model: axiong/PMC_LLaMA_13B | |
parameters: | |
weight: 0.08 |
import argparse | |
import yaml | |
from huggingface_hub import ModelCard, HfApi | |
from jinja2 import Template | |
# Argument parser setup | |
parser = argparse.ArgumentParser(description='Create a repo on Huggingface for the model and upload it.') | |
parser.add_argument('model_name', type=str, help='Model name') | |
parser.add_argument('--new', action='store_true', default=True, help='Create new repo') | |
parser.add_argument('-y', '--yaml_path', type=str, required=True, help='Path to YAML configuration file') |
models: | |
- model: NousResearch/Llama-2-7b-hf | |
# no parameters necessary for base model | |
- model: AdaptLLM/medicine-chat | |
parameters: | |
weight: 0.08 | |
density: 0.45 | |
- model: starmpcc/Asclepius-Llama2-7B | |
parameters: | |
weight: 0.08 |
; PlatformIO Project Configuration File | |
; | |
; Build options: build flags, source filter | |
; Upload options: custom upload port, speed and extra flags | |
; Library options: dependencies, extra library storages | |
; Advanced options: extra scripting | |
; | |
; Please visit documentation for the other options and examples | |
; https://docs.platformio.org/page/projectconf.html |
name: PlatformIO CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!startsWith(github.event.head_commit.message, 'docs')" | |
steps: |
/****************************************************************************/ | |
/* Function: nanosleep and POSIX 1003.1b RT clock demonstration */ | |
/* */ | |
/* Sam Siewert - 02/05/2011 */ | |
/* */ | |
/****************************************************************************/ | |
#include <errno.h> | |
#include <pthread.h> | |
#include <stdio.h> |
#define _GNU_SOURCE | |
#include <pthread.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sched.h> | |
#include <sys/sysinfo.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <syslog.h> |