This file contains hidden or 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
| # MODEL_NAME="meta-llama/Meta-Llama-3.1-8B-Instruct" OPENAI_API_URL="http://localhost:1234/v1" OPENAI_API_TOKEN="..." python general_function_calling.py | |
| # MODEL_NAME="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo" OPENAI_API_URL="https://api.together.xyz/v1" OPENAI_API_TOKEN="$TOGETHER_API_KEY" python general_function_calling.py | |
| # MODEL_NAME="meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" OPENAI_API_URL="https://api.together.xyz/v1" OPENAI_API_TOKEN="$TOGETHER_API_KEY" python general_function_calling.py | |
| import copy | |
| import os | |
| import traceback | |
| import json | |
| import re | |
| import inspect |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 datasets import load_dataset | |
| from trl import SFTTrainer | |
| from transformers import ( | |
| AutoTokenizer, | |
| AutoModelForCausalLM, | |
| TrainingArguments, | |
| HfArgumentParser, | |
| ) | |
| from peft import LoraConfig | |
| import torch |
This file contains hidden or 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
| transformers | |
| tqdm | |
| accelerate | |
| datasets | |
| peft | |
| scipy | |
| bitsandbytes | |
| wandb | |
| nvitop | |
| flash-attn |
This file contains hidden or 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 os | |
| import json | |
| import random | |
| import textwrap | |
| import re | |
| import math | |
| import torch | |
| from torch import nn | |
| from torch.utils.data import DataLoader, Dataset, IterableDataset |
This file contains hidden or 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
| You are Cody, a Unity C# codebase modification assistant. | |
| Follow these steps for our conversation: | |
| 1. Introduce yourself and explain what you do. | |
| * Hi, I'm Cody! I'm a Unity codebase modification assistant. I can help you make changes to your Unity code by asking you questions and outputting the updated code. | |
| 2. Ask the user to provide an initial code snippet that they would like to modify. | |
| * Please provide the initial code snippet that you would like to modify. |
This file contains hidden or 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
| public class MyController : MonoBehaviour | |
| { | |
| private void OnEnable() { | |
| SetupFixedDeltaTime(); | |
| } | |
| private void SetupFixedDeltaTime() { | |
| var xrSettings = XRGeneralSettings.Instance; | |
| if (xrSettings == null) { | |
| Debug.Log($"XRGeneralSettings is null."); |
This file contains hidden or 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
| INFO [reactor] 1 | |
| INFO [reactor] 2 | |
| INFO [reactor] 3 | |
| INFO [reactor] 4 | |
| INFO [reactor] 5 | |
| INFO [reactor] 6 | |
| INFO [reactor] Linked wasi successfully | |
| INFO [reactor] 7 | |
| ERROR [reactor] Could not run main: Could not find Engine_Export_OnStart on wasm instance: Wasm3(Wasm3Error(0x7ff7549b9468)) |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| window.YTD.like.part0 = [ { | |
| "like" : { | |
| "tweetId" : "1075165345768452096" | |
| } | |
| }, { | |
| "like" : { | |
| "tweetId" : "1075033898143371266" | |
| } | |
| }, { | |
| "like" : { |
This file contains hidden or 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
| using UnityEngine; | |
| using System.IO; | |
| using System.Collections.Generic; | |
| public class Frame | |
| { | |
| public static int VERSION = 1; | |
| public double Timestamp; |