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
diff --git a/modules/training.py b/modules/training.py | |
index 75ba82c..c90d823 100644 | |
--- a/modules/training.py | |
+++ b/modules/training.py | |
@@ -30,12 +30,14 @@ try: | |
MODEL_CLASSES = {v: k for k, v in MODEL_FOR_CAUSAL_LM_MAPPING_NAMES} | |
except: | |
standard_modules = ["q_proj", "v_proj"] | |
- model_to_lora_modules = {"llama": standard_modules, "opt": standard_modules, "gptj": standard_modules, "gpt_neox": ["query_key_value"]} | |
+ model_to_lora_modules = {"llama": standard_modules, "opt": standard_modules, "gptj": standard_modules, "gpt_neox": ["query_key_value"], |
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
using System.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using Newtonsoft.Json; | |
namespace DAZ | |
{ | |
public class DataCollection<T> | |
{ | |
public int count { get; set; } |
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
using System; | |
namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityGameObject | |
{ | |
[TaskCategory("Unity/GameObject")] | |
[TaskDescription("Sets a Behavior Designer variable on a GameObject. Returns success.")] | |
public class SetBehaviorVariable : Action | |
{ | |
[Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")] | |
public SharedGameObject TargetGameObject; |
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
using System; | |
using System.Collections.Generic; | |
using Pathfinding; | |
using UnityEngine; | |
namespace BehaviorDesigner.Runtime.Tasks.Movement.AstarPathfindingProject | |
{ | |
[TaskDescription("Tagged GameObjects Follow the leader with the A* Pathfinding Project.")] | |
[TaskCategory("Movement/A* Pathfinding Project")] | |
[TaskIcon("Assets/Behavior Designer Movement/Editor/Icons/{SkinColor}LeaderFollowIcon.png")] |
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
require 'digest/md5' | |
class FindDupes | |
def initialize(base) | |
@allfiles = Dir['**/**'] | |
@base = base | |
@files = @allfiles.select {|f| File.file? f} | |
end | |
def find_current |
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
require 'test_helper' | |
# ActiveRecord::Schema.define(version: 20170310085807) do | |
# create_table "forums", force: :cascade do |t| | |
# t.string "title" | |
# t.integer "posts_count" | |
# t.datetime "created_at", null: false | |
# t.datetime "updated_at", null: false | |
# end | |
# |
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
require 'sinatra' | |
require 'omniauth-twitter' | |
require 'omniauth-salesforce' | |
configure do | |
enable :sessions | |
end | |
helpers do | |
def h(text) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Binary Entry JavaScript</title> | |
<style type="text/css"> | |
.box { | |
border: 1px solid black; | |
height: 32px; | |
width: 32px; | |
font-size: 24px; |
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
# This shows the list of entities, and that they look like String objects to RubyMotion. | |
(main)> mapping = App.delegate.managedObjectContext.persistentStoreCoordinator.managedObjectModel.entitiesByName.keys.each_with_object({}) { |key, map| map[key.to_s] = key} | |
=> {"Auction"=>"Auction", "Category"=>"Category", "Entry"=>"Entry", "Host"=>"Host"} | |
# This is an example lookup for the Category entity, by name. It fails. | |
(main)> App.delegate.managedObjectContext.persistentStoreCoordinator.managedObjectModel.entitiesByName['Category'] | |
=> nil | |
# Here we try to insert a new object for an entity by name, using 'Category' as a raw string. It fails, unable to locate it. | |
(main)> begin |
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
if ARGV[0].nil? | |
puts "Usage:\n\truby #{__FILE__} {bad bottle#|test}" | |
exit | |
end | |
def guess_bottle(bad_bottle, silent=false) | |
waiters = [] | |
(0..9).each do |waiter_number| | |
waiters[waiter_number] = [] | |
(0..999).each do |bottle| |
NewerOlder