Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a5978c0840 | |||
| 6baff1af4a | |||
| 63b0705353 | |||
| df601404c4 | |||
| ed39e705ab | |||
| ca686a2dda | |||
| cd307640cc | |||
| af2580af21 | |||
| b0ac446450 | |||
| 398b97a1df | |||
| ce4c0e404b | |||
| c577bb740a | |||
| 8ae5e8c2f7 | |||
| 23386797c4 | |||
| 1f3ee3cbff | |||
| d1e87446d3 |
@@ -0,0 +1,136 @@
|
||||
"""Evaluate all predeclared models on fresh counterfactual pairs."""
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
from time import monotonic
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from tokenizers import Tokenizer
|
||||
|
||||
from crossqkv.lisa_combination_screen import ADAPTER_SHA, SITES
|
||||
from crossqkv.lisa_full_answer import evaluate, fingerprint
|
||||
from crossqkv.lisa_full_answer_verify import verify
|
||||
from crossqkv.lisa_rank_compare import make_adapters
|
||||
from functional.model import StreamingLM
|
||||
from functional.run import write_json
|
||||
|
||||
|
||||
def score_differences(scores):
|
||||
"""Per-question accuracy changes under each matched or original LiSA comparison."""
|
||||
shared = scores['shared-allocated']
|
||||
uniform = scores['shared-uniform']
|
||||
local = scores['local-allocated']
|
||||
prior = scores['prior-lisa']
|
||||
student = scores['trajectory-student']
|
||||
reference = scores['trajectory-reference']
|
||||
return {
|
||||
'rank-vs-uniform': shared - uniform,
|
||||
'rank-vs-prior': shared - prior,
|
||||
'rank-vs-reversed': shared - scores['shared-reversed'],
|
||||
'rank-vs-local': shared - local,
|
||||
'rank-interaction': (shared - uniform) - (local - scores['local-uniform']),
|
||||
'student-vs-prior': student - prior,
|
||||
'reference-vs-prior': reference - prior,
|
||||
'student-vs-reference': student - reference,
|
||||
}
|
||||
|
||||
|
||||
def changed_answers(questions, comparisons, local_uniform):
|
||||
"""Identify net gains that hide different sets of corrected and lost answers."""
|
||||
ids = np.array([item['id'] for item in questions]).reshape(local_uniform.shape)
|
||||
pairwise = {}
|
||||
for name, delta in comparisons.items():
|
||||
if name != 'rank-interaction':
|
||||
pairwise[name] = {'corrected': ids[delta > 0].tolist(),
|
||||
'lost': ids[delta < 0].tolist()}
|
||||
|
||||
versus_share = comparisons['rank-vs-uniform']
|
||||
versus_allocation = comparisons['rank-vs-local']
|
||||
both = {}
|
||||
for name, sign in [('corrected_against_both', 1), ('lost_against_both', -1)]:
|
||||
mask = (versus_share == sign) & (versus_allocation == sign)
|
||||
both[name] = [{'id': item_id, 'local_uniform_correct': bool(correct)}
|
||||
for item_id, correct in zip(ids[mask].tolist(), local_uniform[mask])]
|
||||
return {'pairwise': pairwise, 'rank_combination': both}
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
for name in ('source','prior','out'):
|
||||
parser.add_argument('--'+name, type=Path, required=True)
|
||||
args = parser.parse_args()
|
||||
torch.set_num_threads(1)
|
||||
path = args.out/'protocol.json'
|
||||
if fingerprint(path) != '6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef':
|
||||
raise ValueError('Frozen protocol mismatch')
|
||||
questions = json.loads(path.read_text())['splits']['test']
|
||||
prior_protocol = json.loads((args.prior/'frozen.json').read_text())['protocol']
|
||||
config = json.loads((args.source/'model_config.json').read_text())
|
||||
tok = Tokenizer.from_file(str(args.source/'tokenizer.json'))
|
||||
out = args.out/'holdout'
|
||||
out.mkdir(exist_ok=True)
|
||||
scores = {}
|
||||
generation = {}
|
||||
for arm in ('native','direct','prior-lisa','trajectory-student','trajectory-reference',
|
||||
'shared-uniform','shared-allocated','shared-reversed','local-uniform','local-allocated'):
|
||||
model = StreamingLM(args.source/'weights', config, seconds=172800,process_swap_limit_kib=None)
|
||||
sites = () if arm=='native' else SITES
|
||||
adapters = None
|
||||
if arm not in ('native','direct'):
|
||||
ranks = dict.fromkeys(SITES,40)
|
||||
shared = True
|
||||
if arm=='prior-lisa':
|
||||
weights = args.prior/'final/lisa.pt'
|
||||
if fingerprint(weights) != ADAPTER_SHA:
|
||||
raise ValueError('Incorrect starting checkpoint')
|
||||
elif arm.startswith('trajectory-'):
|
||||
weights = args.out/arm/'adapter.pt'
|
||||
else:
|
||||
spec = json.loads((args.out/arm/'config.json').read_text())
|
||||
ranks = {int(k):v for k,v in spec['ranks'].items()}
|
||||
shared = spec['shared']
|
||||
weights = args.out/arm/'lisa.pt'
|
||||
adapters = make_adapters(model.config,ranks,shared)
|
||||
torch.nn.ModuleDict({str(i):v for i,v in adapters.items()}).load_state_dict(
|
||||
torch.load(weights,weights_only=True,map_location='cpu'))
|
||||
digest = fingerprint(weights)
|
||||
else:
|
||||
digest = prior_protocol['weights']['manifest.json']
|
||||
lock = out/(arm+'-source.json')
|
||||
if lock.exists() and json.loads(lock.read_text()) != digest:
|
||||
raise ValueError('Cannot resume with changed weights')
|
||||
write_json(lock,digest)
|
||||
path = out/(arm+'.json')
|
||||
rows = json.loads(path.read_text()) if path.exists() else []
|
||||
if rows:
|
||||
verify(tok,prior_protocol,questions,rows,(arm,),allow_prefix=True)
|
||||
for start in range(len(rows),len(questions),2):
|
||||
batch = questions[start:start+2]
|
||||
before = monotonic()
|
||||
generated = evaluate(model,tok,batch,{arm:sites},adapters)
|
||||
seconds = monotonic() - before
|
||||
verify(tok,prior_protocol,batch,generated,(arm,))
|
||||
generated[0]['batch_seconds'] = seconds
|
||||
rows.extend(generated)
|
||||
write_json(path,rows)
|
||||
print(arm,len(rows),'/',len(questions),flush=True)
|
||||
scores[arm] = np.array([x['arms'][arm]['correct'] for x in rows],dtype=int).reshape(-1,2)
|
||||
generation[arm] = {'generated_tokens':sum(len(row['arms'][arm]['tokens']) for row in rows),
|
||||
'seconds':sum(row['batch_seconds'] for row in rows[::2])}
|
||||
comparisons = score_differences(scores)
|
||||
rng = np.random.default_rng(72505)
|
||||
sample = rng.integers(0,len(questions)//2,size=(10000,len(questions)//2))
|
||||
audit = {'questions':len(questions),
|
||||
'generation':generation,
|
||||
'changed_answers':changed_answers(questions,comparisons,scores['local-uniform']),
|
||||
'correct':{k:int(v.sum()) for k,v in scores.items()},
|
||||
'pairs_both_correct':{k:int(v.all(1).sum()) for k,v in scores.items()},
|
||||
'paired_differences':{k:{'delta':float(v.mean()),
|
||||
'interval_95':np.quantile(v.mean(1)[sample].mean(1),[.025,.975]).tolist()}
|
||||
for k,v in comparisons.items()}}
|
||||
write_json(out/'audit.json',audit)
|
||||
|
||||
|
||||
if __name__=='__main__':
|
||||
main()
|
||||
@@ -0,0 +1,90 @@
|
||||
"""Freeze paired lookup questions and restore individual native attention layers."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import random
|
||||
from pathlib import Path
|
||||
|
||||
import torch
|
||||
from tokenizers import Tokenizer
|
||||
|
||||
from crossqkv.lisa_effect_screen import WORDS
|
||||
from crossqkv.lisa_full_answer import evaluate
|
||||
from crossqkv.lisa_train import LearnableSharingAttention
|
||||
from functional.model import StreamingLM
|
||||
from functional.run import write_json
|
||||
|
||||
|
||||
SITES = (15, 19, 23)
|
||||
ADAPTER_SHA = 'c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29'
|
||||
|
||||
|
||||
def paired_questions(split, pairs, seed):
|
||||
rng = random.Random(seed)
|
||||
rows = []
|
||||
for i in range(pairs):
|
||||
keys = rng.sample(WORDS, 12)
|
||||
values = rng.sample(range(20, 100), 12)
|
||||
target, foil = rng.sample(range(12), 2)
|
||||
for variant in range(2):
|
||||
records = ', '.join(f'{k}={v}' for k, v in zip(keys, values))
|
||||
rows.append({'id': f'{split}-{i:03}-{variant}', 'task': 'lookup',
|
||||
'question': f'Records in time order: {records}.\nWhat is the recorded number for {keys[target]}?',
|
||||
'answer': values[target]})
|
||||
values[target], values[foil] = values[foil], values[target]
|
||||
return rows
|
||||
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
for name in ('source', 'prior', 'out'):
|
||||
p.add_argument('--'+name, type=Path, required=True)
|
||||
args = p.parse_args()
|
||||
args.out.mkdir(exist_ok=True, parents=True)
|
||||
previous = json.loads((args.prior/'frozen.json').read_text())
|
||||
splits = {s: paired_questions(s, n, seed) for s, n, seed in (
|
||||
('diagnostic', 8, 72501), ('validation', 8, 72502), ('test', 32, 72503))}
|
||||
seen = {r['question'] for rows in previous['problems'].values() for r in rows}
|
||||
for rows in splits.values():
|
||||
for row in rows:
|
||||
if row['question'] in seen:
|
||||
raise ValueError('Repeated question')
|
||||
seen.add(row['question'])
|
||||
spec = {'splits': splits, 'base_adapter': ADAPTER_SHA, 'sites': SITES,
|
||||
'rank_budget': [32, 40, 48], 'uniform_rank': 40, 'cap': 24,
|
||||
'rank_selection': 'Order layers by increase in complete-answer correct count upon single restoration; ties by ascending layer index, earlier gets higher rank.',
|
||||
'primary_metric': 'complete answer accuracy; paired uncertainty resamples counterfactual pairs',
|
||||
'secondary_metric': 'both members of pair correct'}
|
||||
spec_path = args.out/'protocol.json'
|
||||
if spec_path.exists() and json.loads(spec_path.read_text()) != json.loads(json.dumps(spec)):
|
||||
raise ValueError('Protocol changed')
|
||||
write_json(spec_path, spec)
|
||||
weight_path = args.prior/'final/lisa.pt'
|
||||
if hashlib.sha256(weight_path.read_bytes()).hexdigest() != ADAPTER_SHA:
|
||||
raise ValueError('Prior adapter mismatch')
|
||||
torch.set_num_threads(1)
|
||||
c = json.loads((args.source/'model_config.json').read_text())
|
||||
model = StreamingLM(args.source/'weights', c, seconds=172800, process_swap_limit_kib=None)
|
||||
c = model.config
|
||||
tok = Tokenizer.from_file(str(args.source/'tokenizer.json'))
|
||||
adapters = torch.nn.ModuleDict({str(i): LearnableSharingAttention(c['hidden_size'],
|
||||
c['num_attention_heads'], c['num_key_value_heads'], 40, c['rope_parameters']['rope_theta'],
|
||||
c['rope_parameters']['partial_rotary_factor'], bias=c.get('attention_bias', False)) for i in SITES})
|
||||
adapters.load_state_dict(torch.load(weight_path, weights_only=True, map_location='cpu'))
|
||||
for restored in (None, *SITES):
|
||||
active = tuple(i for i in SITES if i != restored)
|
||||
label = 'baseline' if restored is None else f'restore-{restored}'
|
||||
path = args.out/(label+'.json')
|
||||
rows = json.loads(path.read_text()) if path.exists() else []
|
||||
questions = splits['diagnostic']
|
||||
if [r['id'] for r in rows] != [q['id'] for q in questions[:len(rows)]]:
|
||||
raise ValueError('Diagnostic prefix mismatch')
|
||||
for start in range(len(rows), len(questions), 2):
|
||||
rows.extend(evaluate(model, tok, questions[start:start+2], {label: active},
|
||||
{i: adapters[str(i)] for i in active}))
|
||||
write_json(path, rows)
|
||||
print(label, len(rows), flush=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -44,6 +44,22 @@ def load_locked(source, screen):
|
||||
return chosen, manifest
|
||||
|
||||
|
||||
def verified_fit_captures(source, fit):
|
||||
"""Verify the frozen fit inputs and return their archives by question ID."""
|
||||
captures = source/'fit-capture'
|
||||
receipt = source/'verified-fit-capture.json'
|
||||
if fingerprint(receipt) != '682bc035a5bed9f9245f589cacf3e9616300e8bf5e85d3743b1264a56360fa55':
|
||||
raise ValueError('Capture receipt mismatch')
|
||||
records = json.loads(receipt.read_text())['records']
|
||||
if ([r['id'] for r in records] != [r['id'] for r in fit] or
|
||||
sorted(x.name for x in captures.glob('*.npz')) != [r['file'] for r in records]):
|
||||
raise ValueError('Unexpected capture set')
|
||||
for row in records:
|
||||
if fingerprint(captures/row['file']) != row['sha256']:
|
||||
raise ValueError('Fit capture mismatch')
|
||||
return {r['id']: captures/r['file'] for r in records}
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def capture(model, tokenizer, fit_examples, directory):
|
||||
directory.mkdir(exist_ok=True)
|
||||
@@ -77,12 +93,13 @@ def checkpoint(path, obj):
|
||||
pending.replace(path)
|
||||
|
||||
|
||||
def train(model, tokenizer, out, split, epochs, rank):
|
||||
c = model.config
|
||||
rope = c['rope_parameters']
|
||||
adapters = {i: LearnableSharingAttention(c['hidden_size'], c['num_attention_heads'],
|
||||
c['num_key_value_heads'], rank, rope['rope_theta'], rope['partial_rotary_factor'],
|
||||
bias=c.get('attention_bias', False)) for i in model.sites}
|
||||
def train(model, tokenizer, out, split, epochs, rank, *, adapters=None, captures=None):
|
||||
if adapters is None:
|
||||
c = model.config
|
||||
rope = c['rope_parameters']
|
||||
adapters = {i: LearnableSharingAttention(c['hidden_size'], c['num_attention_heads'],
|
||||
c['num_key_value_heads'], rank, rope['rope_theta'], rope['partial_rotary_factor'],
|
||||
bias=c.get('attention_bias', False)) for i in model.sites}
|
||||
tail = TorchTail(model, model.sites[0], adapters)
|
||||
optim = torch.optim.AdamW(tail.parameters(), lr=.0003, weight_decay=.1)
|
||||
last = out/'resume.pt'
|
||||
@@ -101,7 +118,7 @@ def train(model, tokenizer, out, split, epochs, rank):
|
||||
yield start, w
|
||||
start += len(w)
|
||||
|
||||
paths = sorted((out/'fit-capture').glob('*.npz'))
|
||||
paths = sorted((captures or out/'fit-capture').glob('*.npz'))
|
||||
for epoch in range(state['epoch'], epochs):
|
||||
for path in paths[len(state['steps']):]:
|
||||
with np.load(path, allow_pickle=False) as entry:
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
"""Compare diagnostic rank allocation and uniform ranks under matched training."""
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import torch
|
||||
from tokenizers import Tokenizer
|
||||
|
||||
from crossqkv.lisa_combination_screen import ADAPTER_SHA, SITES
|
||||
from crossqkv.lisa_effect_answer_audit import vocabulary_scores
|
||||
from crossqkv.lisa_full_answer import STOP_TEXT, fingerprint, prompt
|
||||
from crossqkv.lisa_full_answer_train import FitCapture, load_locked, train, verified_fit_captures
|
||||
from crossqkv.lisa_tail import TorchTail
|
||||
from crossqkv.lisa_train import LearnableSharingAttention
|
||||
from functional.model import PREFIX, StreamingLM
|
||||
from functional.run import write_json
|
||||
|
||||
|
||||
def assignments(protocol, directory):
|
||||
expected = [(q['id'], q['answer']) for q in protocol['splits']['diagnostic']]
|
||||
scores = {}
|
||||
for label in ('baseline', *(f'restore-{i}' for i in SITES)):
|
||||
rows = json.loads((directory/(label+'.json')).read_text())
|
||||
if [(r['id'], r['gold']) for r in rows] != expected:
|
||||
raise ValueError(f'Incomplete diagnostic arm {label}')
|
||||
scores[label] = sum(r['arms'][label]['correct'] for r in rows)
|
||||
ordered = sorted(SITES, key=lambda i: (-scores[f'restore-{i}'], i))
|
||||
selected = dict(zip(ordered, reversed(protocol['rank_budget'])))
|
||||
reverse = dict(zip(ordered, protocol['rank_budget']))
|
||||
return scores, {'allocated':selected, 'reversed':reverse, 'uniform':dict.fromkeys(SITES, 40)}
|
||||
|
||||
|
||||
def local_scores_only(module, args):
|
||||
local, donor = args[0].chunk(2, dim=-1)
|
||||
return (torch.cat((local, torch.zeros_like(donor)), dim=-1),)
|
||||
|
||||
|
||||
def make_adapters(config, ranks, shared):
|
||||
rope = config['rope_parameters']
|
||||
adapters = {i: LearnableSharingAttention(config['hidden_size'], config['num_attention_heads'],
|
||||
config['num_key_value_heads'], ranks[i], rope['rope_theta'], rope['partial_rotary_factor'],
|
||||
bias=config.get('attention_bias', False)) for i in SITES}
|
||||
if not shared:
|
||||
for adapter in adapters.values():
|
||||
adapter.fuse.register_forward_pre_hook(local_scores_only)
|
||||
return adapters
|
||||
|
||||
|
||||
def score_gold_answers(outputs, sequences, starts, embedding):
|
||||
gold = [ids[first:] for ids, first in zip(sequences, starts)]
|
||||
targets = torch.tensor([token for answer in gold for token in answer])
|
||||
sizes = [len(answer) for answer in gold]
|
||||
vectors = torch.cat([out[i, first-1:len(ids)-1] for out in outputs.values()
|
||||
for i, (ids, first) in enumerate(zip(sequences, starts))])
|
||||
_, nll = vocabulary_scores(vectors, targets.repeat(len(outputs)), embedding)
|
||||
if not torch.isfinite(nll).all():
|
||||
raise FloatingPointError('Invalid full-vocabulary diagnostic score')
|
||||
scores = [{} for _ in gold]
|
||||
for label, values in zip(outputs, nll.split(len(targets))):
|
||||
for row, part in zip(scores, values.split(sizes)):
|
||||
row[label] = (-part).tolist()
|
||||
return gold, scores
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def diagnostic_log_probs(model, tok, weights, questions, path):
|
||||
"""Teacher-force gold answers; all restorations share the same frozen stem."""
|
||||
if fingerprint(weights) != ADAPTER_SHA:
|
||||
raise ValueError('Unexpected diagnostic checkpoint')
|
||||
adapters = make_adapters(model.config, dict.fromkeys(SITES, 40), True)
|
||||
tail = TorchTail(model, SITES[0], adapters)
|
||||
tail.adapters.load_state_dict(torch.load(weights, weights_only=True, map_location='cpu'))
|
||||
native = FitCapture(model, 0)
|
||||
native.sites = SITES
|
||||
rows = json.loads(path.read_text()) if path.exists() else []
|
||||
if [r['id'] for r in rows] != [q['id'] for q in questions[:len(rows)]]:
|
||||
raise ValueError('Unexpected gold-score prefix')
|
||||
for start in range(len(rows), len(questions), 2):
|
||||
batch = questions[start:start+2]
|
||||
sequences, starts = [], []
|
||||
for item in batch:
|
||||
text = prompt(item['question'])
|
||||
base = tok.encode(text, add_special_tokens=False).ids
|
||||
ids = tok.encode(text + str(item['answer']) + STOP_TEXT[0], add_special_tokens=False).ids
|
||||
if ids[:len(base)] != base or len(ids) <= len(base):
|
||||
raise ValueError('Gold answer is not an extension of its prompt')
|
||||
sequences.append(ids)
|
||||
starts.append(len(base))
|
||||
lengths = torch.tensor([len(ids)-1 for ids in sequences])
|
||||
width = int(lengths.max())
|
||||
padded = torch.tensor([ids[:-1] + [0]*(width-len(ids)+1) for ids in sequences])
|
||||
h = torch.from_numpy(model.embedding(padded.numpy()))
|
||||
original, maps = native(h, None, lengths, 'native', ())
|
||||
outputs = {'native':original}
|
||||
for restored in (None, *SITES):
|
||||
sites = tuple(i for i in SITES if i != restored)
|
||||
label = 'baseline' if restored is None else f'restore-{restored}'
|
||||
outputs[label], _ = tail(native.residual, maps[SITES[0]-4][0], lengths, 'lisa', sites)
|
||||
gold_tokens, log_probs = score_gold_answers(outputs, sequences, starts,
|
||||
model.tensors[PREFIX+'embed_tokens.weight'])
|
||||
results = [{'id': item['id'], 'gold': item['answer'], 'tokens': gold, 'log_probs': scores}
|
||||
for item, gold, scores in zip(batch, gold_tokens, log_probs)]
|
||||
rows.extend(results)
|
||||
write_json(path, rows)
|
||||
print('diagnostic gold sequence', len(rows), '/', len(questions), flush=True)
|
||||
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
for name in ('source','prior','out'):
|
||||
p.add_argument('--'+name, type=Path, required=True)
|
||||
args = p.parse_args()
|
||||
torch.set_num_threads(1)
|
||||
protocol_file = args.out/'protocol.json'
|
||||
if fingerprint(protocol_file) != '6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef':
|
||||
raise ValueError('Protocol mismatch')
|
||||
protocol = json.loads(protocol_file.read_text())
|
||||
scores, ranks = assignments(protocol,args.out)
|
||||
_, prior = load_locked(args.source,args.prior)
|
||||
source = args.prior/'final'
|
||||
captures = source/'fit-capture'
|
||||
fit = [r for r in prior['problems']['fit'] if r['task']=='lookup']
|
||||
verified_fit_captures(source, fit)
|
||||
config = json.loads((args.source/'model_config.json').read_text())
|
||||
tok = Tokenizer.from_file(str(args.source/'tokenizer.json'))
|
||||
diagnostic_model = StreamingLM(args.source/'weights', config, seconds=172800, process_swap_limit_kib=None)
|
||||
diagnostic_log_probs(diagnostic_model, tok, source/'lisa.pt', protocol['splits']['diagnostic'],
|
||||
args.out/'diagnostic-gold-log-probs.json')
|
||||
del diagnostic_model
|
||||
arms = [('allocated',True),('uniform',True),('reversed',True),
|
||||
('uniform',False),('allocated',False)]
|
||||
for allocation, shared in arms:
|
||||
label = ('shared-' if shared else 'local-')+allocation
|
||||
out = args.out/label
|
||||
out.mkdir(exist_ok=True)
|
||||
torch.manual_seed(621011)
|
||||
model = StreamingLM(args.source/'weights',config,seconds=172800,process_swap_limit_kib=None)
|
||||
model.sites = SITES
|
||||
adapters = make_adapters(model.config, ranks[allocation], shared)
|
||||
count = sum(p.numel() for adapter in adapters.values() for p in adapter.parameters())
|
||||
spec = {'diagnostic_correct':scores,'ranks':{str(k):v for k,v in ranks[allocation].items()},
|
||||
'shared':shared,'parameters':count,'seed':621011,'epochs':2}
|
||||
path = out/'config.json'
|
||||
if count != 2476032 or (path.exists() and json.loads(path.read_text()) != spec):
|
||||
raise ValueError('Unmatched rank budget or run configuration')
|
||||
write_json(path,spec)
|
||||
if not (out/'lisa.pt').exists():
|
||||
train(model,tok,out,protocol['splits'],2,40,adapters=adapters,captures=captures)
|
||||
print(label,'finished',flush=True)
|
||||
|
||||
|
||||
if __name__=='__main__':
|
||||
main()
|
||||
@@ -0,0 +1,103 @@
|
||||
"""Measure how much native attention score error extra rank can remove on frozen fit captures."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
from itertools import permutations
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
RECEIPT_SHA = '682bc035a5bed9f9245f589cacf3e9616300e8bf5e85d3743b1264a56360fa55'
|
||||
RANKS = (32, 40, 48)
|
||||
|
||||
|
||||
def matrices(directory, record):
|
||||
data = (directory / record['file']).read_bytes()
|
||||
if hashlib.sha256(data).hexdigest() != record['sha256']:
|
||||
raise ValueError(f"Capture changed for {record['id']}")
|
||||
with np.load(io.BytesIO(data), allow_pickle=False) as capture:
|
||||
donor = capture['donor'][0].astype(np.float64)
|
||||
teachers = capture['teacher'][:, 0].astype(np.float64)
|
||||
length = capture['ids'].shape[1]
|
||||
start = int(capture['start'][0])
|
||||
if start != record['input_tokens'] or length - start != record['answer_and_eos_tokens']:
|
||||
raise ValueError(f"Unexpected token counts for {record['id']}")
|
||||
if teachers.shape != (3, 8, length, length) or donor.shape != teachers.shape[1:]:
|
||||
raise ValueError(f"Unexpected score shapes for {record['id']}")
|
||||
features = donor.reshape(8, -1).T
|
||||
features = np.column_stack((features, np.ones(length * length)))
|
||||
targets = teachers.reshape(24, -1).T
|
||||
return features, targets, length
|
||||
|
||||
|
||||
def layer_designs(donor, teachers, adjacent_native):
|
||||
for layer, target in enumerate(np.hsplit(teachers, 3)):
|
||||
if adjacent_native and layer:
|
||||
start = (layer - 1) * 8
|
||||
features = np.column_stack((teachers[:, start:start + 8], donor[:, -1]))
|
||||
else:
|
||||
features = donor
|
||||
yield features, target
|
||||
|
||||
|
||||
def measure(prior, adjacent_native=False):
|
||||
raw = (prior / 'verified-fit-capture.json').read_bytes()
|
||||
if hashlib.sha256(raw).hexdigest() != RECEIPT_SHA:
|
||||
raise ValueError('Expected the verified 24-example native score capture')
|
||||
receipt = json.loads(raw)
|
||||
records = receipt['records']
|
||||
sites = receipt['recipients']
|
||||
directory = prior / 'fit-capture'
|
||||
# Fit one affine donor-head map on each half of the training examples.
|
||||
gram = np.zeros((2, 3, 9, 9))
|
||||
cross = np.zeros((2, 3, 9, 8))
|
||||
for i, record in enumerate(records):
|
||||
donor, teachers, _ = matrices(directory, record)
|
||||
for layer, (x, y) in enumerate(layer_designs(donor, teachers, adjacent_native)):
|
||||
gram[i % 2, layer] += x.T @ x
|
||||
cross[i % 2, layer] += x.T @ y
|
||||
coefficients = np.linalg.solve(gram, cross)
|
||||
|
||||
rows = []
|
||||
for i, record in enumerate(records):
|
||||
donor, teachers, length = matrices(directory, record)
|
||||
errors = [(y - x @ coef).T.reshape(8, length, length)
|
||||
for (x, y), coef in zip(layer_designs(donor, teachers, adjacent_native),
|
||||
coefficients[1 - i % 2])]
|
||||
residual = np.stack(errors)
|
||||
singular_values = np.linalg.svd(residual, compute_uv=False)
|
||||
energy = singular_values**2
|
||||
np.testing.assert_allclose(energy.sum(-1), (residual**2).sum(axis=(-1, -2)), rtol=1e-10)
|
||||
rows.append({
|
||||
'id': record['id'], 'length': length,
|
||||
'mse': {str(site): {str(rank): float(energy[j, :, rank:].sum() / (8 * length**2))
|
||||
for rank in (0, *RANKS)} for j, site in enumerate(sites)}
|
||||
})
|
||||
|
||||
means = {str(site): {str(rank): float(np.mean([r['mse'][str(site)][str(rank)] for r in rows]))
|
||||
for rank in (0, *RANKS)} for site in sites}
|
||||
uniform = np.array([np.mean([row['mse'][str(site)]['40'] for site in sites]) for row in rows])
|
||||
configs = []
|
||||
for ranks in ((40, 40, 40), *permutations(RANKS)):
|
||||
errors = [np.mean([row['mse'][str(site)][str(rank)] for site, rank in zip(sites, ranks)])
|
||||
for row in rows]
|
||||
configs.append({'ranks': list(ranks), 'mean_mse': float(np.mean(errors)),
|
||||
'examples_below_uniform_mse': int(np.sum(errors < uniform))})
|
||||
return {
|
||||
'source_receipt_sha256': RECEIPT_SHA, 'split': 'fit', 'sites': sites,
|
||||
**({'native_donor_layers': [11, 15, 19]} if adjacent_native else {'donor_layer': 11}),
|
||||
'donor_fit': 'affine, opposite index parity',
|
||||
'metric': 'mean per-example, per-layer, per-head, all token-pair squared raw score residual',
|
||||
'mean_mse': means, 'configurations': configs, 'examples': rows
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('prior_final', type=Path)
|
||||
parser.add_argument('--adjacent-native', action='store_true',
|
||||
help='Use each previous native full-attention layer as the donor')
|
||||
args = parser.parse_args()
|
||||
print(json.dumps(measure(args.prior_final, args.adjacent_native), indent=2, allow_nan=False))
|
||||
@@ -0,0 +1,169 @@
|
||||
"""Test a single predeclared shrinkage of the two trained LiSA distillation updates."""
|
||||
import argparse
|
||||
import fcntl
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from tokenizers import Tokenizer
|
||||
|
||||
from crossqkv.lisa_combination_screen import ADAPTER_SHA, SITES
|
||||
from crossqkv.lisa_full_answer import fingerprint
|
||||
from crossqkv.lisa_full_answer_train import checkpoint, load_locked
|
||||
from crossqkv.lisa_full_answer_verify import verify
|
||||
from crossqkv.lisa_rank_compare import make_adapters
|
||||
from crossqkv.lisa_trajectory_train import validate_checkpoint
|
||||
from functional.model import StreamingLM
|
||||
from functional.run import write_json
|
||||
|
||||
|
||||
PROTOCOL_SHA = '6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef'
|
||||
TRAINED_SHA = {
|
||||
'student': '7faacdffbc81d0c786ef0c7a5acaf1724d82af155fed7b834dabc73dcf91f3a4',
|
||||
'reference': '21ae007cb7343c1a0042655824bdc98ee2f03071d5f5dc43dbc8b441a262d84f',
|
||||
}
|
||||
VALIDATION_SHA = {
|
||||
'prior-lisa': '3a10cdd0a22e110b5468ba496c3440a8b510ab3595328df330e7ea02b0ccbb76',
|
||||
'trajectory-student': 'af213ef477e99780d48b995f8a1d07ada6409bd70011202fb73db56247199c5f',
|
||||
'trajectory-reference': '3b5557336570cbeb1f6a592013780dc3e00e7f29b4192d59c53c6b2493779b91',
|
||||
}
|
||||
|
||||
|
||||
def read(path):
|
||||
return json.loads(path.read_bytes())
|
||||
|
||||
|
||||
def midpoint(base, trained):
|
||||
if base.keys() != trained.keys():
|
||||
raise ValueError('Adapter parameter names differ')
|
||||
result = {}
|
||||
for name, old in base.items():
|
||||
new = trained[name]
|
||||
if new.shape != old.shape or new.dtype != old.dtype or not old.is_floating_point():
|
||||
raise ValueError(f'Incompatible parameters for {name}')
|
||||
value = ((old.double() + new.double()) * 0.5).to(old.dtype)
|
||||
if not torch.isfinite(value).all():
|
||||
raise ValueError(f'Nonfinite midpoint for {name}')
|
||||
result[name] = value
|
||||
return result
|
||||
|
||||
|
||||
def prepare(prior, out, directory):
|
||||
base_path = prior / 'final/lisa.pt'
|
||||
if fingerprint(base_path) != ADAPTER_SHA:
|
||||
raise ValueError('Wrong starting LiSA model')
|
||||
base = torch.load(base_path, weights_only=True, map_location='cpu')
|
||||
spec = {'protocol_sha256': PROTOCOL_SHA, 'base_sha256': ADAPTER_SHA, 'fraction': 0.5,
|
||||
'parameters': sum(t.numel() for t in base.values()), 'endpoints': {}}
|
||||
for prefix, digest in TRAINED_SHA.items():
|
||||
endpoint = out / ('trajectory-' + prefix) / 'adapter.pt'
|
||||
if fingerprint(endpoint) != digest:
|
||||
raise ValueError(f'Wrong {prefix} distillation checkpoint')
|
||||
value = midpoint(base, torch.load(endpoint, weights_only=True, map_location='cpu'))
|
||||
path = directory / (prefix + '.pt')
|
||||
if path.exists():
|
||||
saved = torch.load(path, weights_only=True, map_location='cpu')
|
||||
if saved.keys() != value.keys() or any(not torch.equal(t, saved[k]) for k, t in value.items()):
|
||||
raise ValueError(f'Stored {prefix} midpoint differs from its endpoints')
|
||||
else:
|
||||
checkpoint(path, value)
|
||||
spec['endpoints'][prefix] = {'trained_sha256': digest, 'midpoint_sha256': fingerprint(path)}
|
||||
path = directory / 'spec.json'
|
||||
if path.exists() and read(path) != spec:
|
||||
raise ValueError('Midpoint experiment specification changed')
|
||||
write_json(path, spec)
|
||||
return spec
|
||||
|
||||
|
||||
def summarize(questions, answers, *, intervals):
|
||||
ids = [q['id'] for q in questions]
|
||||
flags = {name: np.array([a['correct'] for a in rows], dtype=int).reshape(-1, 2)
|
||||
for name, rows in answers.items()}
|
||||
draws = np.random.default_rng(72505).integers(0, len(ids)//2, (10000, len(ids)//2)) if intervals else None
|
||||
comparisons = {}
|
||||
for prefix in TRAINED_SHA:
|
||||
name = 'half-' + prefix
|
||||
controls = ['prior-lisa', 'trajectory-' + prefix]
|
||||
if prefix == 'student':
|
||||
controls.append('half-reference')
|
||||
for control in controls:
|
||||
delta = flags[name] - flags[control]
|
||||
comparison = {'delta': float(delta.mean()),
|
||||
'corrected': [q for q, d in zip(ids, delta.flat) if d > 0],
|
||||
'lost': [q for q, d in zip(ids, delta.flat) if d < 0]}
|
||||
if intervals:
|
||||
comparison['interval_95'] = np.quantile(delta.mean(1)[draws].mean(1), [.025, .975]).tolist()
|
||||
comparisons[name + '-vs-' + control] = comparison
|
||||
return {'questions': len(ids), 'correct': {k: int(v.sum()) for k, v in flags.items()},
|
||||
'pairs_both_correct': {k: int(v.all(1).sum()) for k, v in flags.items()}, 'comparisons': comparisons}
|
||||
|
||||
|
||||
def score_split(args, directory, questions, split, protocol, model, tok, spec):
|
||||
folder = directory / split
|
||||
folder.mkdir(exist_ok=True)
|
||||
answers = {}
|
||||
for name, digest in VALIDATION_SHA.items():
|
||||
prefix = name.removeprefix('trajectory-')
|
||||
if split == 'validation':
|
||||
path = (args.out/'validation-prior-lisa.json' if name == 'prior-lisa'
|
||||
else args.out/name/('validation-' + prefix + '.json'))
|
||||
if fingerprint(path) != digest:
|
||||
raise ValueError(f'Validation control changed for {name}')
|
||||
else:
|
||||
path = args.out/'holdout'/(name + '.json')
|
||||
expected = ADAPTER_SHA if name == 'prior-lisa' else TRAINED_SHA[prefix]
|
||||
if read(path.with_name(name + '-source.json')) != expected:
|
||||
raise ValueError(f'Holdout control source changed for {name}')
|
||||
rows = read(path)
|
||||
verify(tok, protocol, questions, rows, (path.stem,))
|
||||
answers[name] = [r['arms'][path.stem] for r in rows]
|
||||
for prefix in TRAINED_SHA:
|
||||
name = 'half-' + prefix
|
||||
path = directory / (prefix + '.pt')
|
||||
if fingerprint(path) != spec['endpoints'][prefix]['midpoint_sha256']:
|
||||
raise ValueError(f'Midpoint changed for {prefix}')
|
||||
adapters = make_adapters(model.config, dict.fromkeys(SITES, 40), True)
|
||||
torch.nn.ModuleDict({str(i): v for i, v in adapters.items()}).load_state_dict(
|
||||
torch.load(path, weights_only=True, map_location='cpu'))
|
||||
answer_path = folder / (name + '.json')
|
||||
validate_checkpoint(model, tok, adapters, questions, protocol, answer_path, split_name=split)
|
||||
rows = read(answer_path)
|
||||
verify(tok, protocol, questions, rows, (name,))
|
||||
answers[name] = [r['arms'][name] for r in rows]
|
||||
summary = summarize(questions, answers, intervals=split == 'test')
|
||||
write_json(folder/'summary.json', summary)
|
||||
return summary
|
||||
|
||||
|
||||
def run(args):
|
||||
if fingerprint(args.out/'protocol.json') != PROTOCOL_SHA:
|
||||
raise ValueError('Wrong comparison protocol')
|
||||
directory = args.out/'trajectory-midpoint'
|
||||
directory.mkdir(exist_ok=True)
|
||||
with (directory/'.lock').open('a') as lock:
|
||||
fcntl.flock(lock, fcntl.LOCK_EX)
|
||||
spec = prepare(args.prior, args.out, directory)
|
||||
if args.prepare_only:
|
||||
return
|
||||
_, prior = load_locked(args.source, args.prior)
|
||||
model = StreamingLM(args.source/'weights', read(args.source/'model_config.json'), seconds=172800,
|
||||
process_swap_limit_kib=None)
|
||||
tok = Tokenizer.from_file(str(args.source/'tokenizer.json'))
|
||||
splits = read(args.out/'protocol.json')['splits']
|
||||
val = score_split(args, directory, splits['validation'], 'validation', prior['protocol'], model, tok, spec)
|
||||
counts = val['correct']
|
||||
qualified = [p for p in TRAINED_SHA if counts['half-' + p] > counts['prior-lisa']]
|
||||
if qualified:
|
||||
score_split(args, directory, splits['test'], 'test', prior['protocol'], model, tok, spec)
|
||||
write_json(directory/'decision.json', {'qualified_validation_prefixes': qualified,
|
||||
'test_evaluated': bool(qualified)})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
for key in ('source', 'prior', 'out'):
|
||||
parser.add_argument('--' + key, required=True, type=Path)
|
||||
parser.add_argument('--prepare-only', action='store_true')
|
||||
torch.set_num_threads(1)
|
||||
run(parser.parse_args())
|
||||
@@ -0,0 +1,183 @@
|
||||
"""Distill next-token distributions along LiSA's current greedy trajectories."""
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from tokenizers import Tokenizer
|
||||
|
||||
from crossqkv.lisa_combination_screen import ADAPTER_SHA, SITES
|
||||
from crossqkv.lisa_full_answer import STOP_TEXT, evaluate, fingerprint, prompt
|
||||
from crossqkv.lisa_full_answer_train import FitCapture, checkpoint, load_locked, verified_fit_captures
|
||||
from crossqkv.lisa_full_answer_verify import verify
|
||||
from crossqkv.lisa_tail import TorchTail, weight_chunks
|
||||
from crossqkv.lisa_train import LearnableSharingAttention
|
||||
from functional.model import PREFIX, StreamingLM
|
||||
from functional.run import write_json
|
||||
|
||||
|
||||
def reverse_kl(student, teacher, chunks):
|
||||
"""Exact reverse KL and its first derivative for a streamed, frozen head."""
|
||||
with torch.no_grad():
|
||||
# Both models use the same frozen output weights. Read each block once
|
||||
# for the two projections, then revisit it only for the student gradient.
|
||||
student_logits = []
|
||||
teacher_logits = []
|
||||
for w in chunks():
|
||||
student_logits.append(student @ w.T)
|
||||
teacher_logits.append(teacher @ w.T)
|
||||
logp = torch.cat(student_logits, dim=-1).log_softmax(-1)
|
||||
del student_logits
|
||||
logq = torch.cat(teacher_logits, dim=-1).log_softmax(-1)
|
||||
del teacher_logits
|
||||
diff = logp - logq
|
||||
prob = logp.exp()
|
||||
kl = (prob * diff).sum(-1, keepdim=True)
|
||||
dlogits = prob * (diff - kl) / len(student)
|
||||
grad = torch.zeros_like(student)
|
||||
start = 0
|
||||
for w in chunks():
|
||||
grad.addmm_(dlogits[:, start:start+len(w)], w)
|
||||
start += len(w)
|
||||
return kl.mean() + ((student - student.detach()) * grad).sum()
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def full_teacher_inputs(model, teacher, ids, lengths):
|
||||
hidden = torch.from_numpy(model.embedding(ids.numpy()))
|
||||
target, maps = teacher(hidden, None, lengths, 'native', ())
|
||||
return target, teacher.residual, maps[SITES[0]-4][0]
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def replay_teacher_inputs(tail, path, ids, start, lengths):
|
||||
with np.load(path, allow_pickle=False) as saved:
|
||||
if int(saved['start'].item()) != start or not np.array_equal(saved['ids'], ids.numpy()):
|
||||
raise ValueError('Cached sequence does not match this gold answer and prompt')
|
||||
residual = torch.from_numpy(saved['residual'])
|
||||
donor = torch.from_numpy(saved['donor'])
|
||||
target, _ = tail(residual, donor, lengths, 'native', ())
|
||||
return target, residual, donor
|
||||
|
||||
|
||||
def validate_checkpoint(model, tokenizer, adapters, questions, decode_spec, path, *, split_name='validation'):
|
||||
label = path.stem
|
||||
rows = json.loads(path.read_text()) if path.exists() else []
|
||||
if rows:
|
||||
verify(tokenizer, decode_spec, questions, rows, (label,), allow_prefix=True)
|
||||
for start in range(len(rows), len(questions), 2):
|
||||
batch = questions[start:start+2]
|
||||
outputs = evaluate(model, tokenizer, batch, {label: SITES}, adapters)
|
||||
verify(tokenizer, decode_spec, batch, outputs, (label,))
|
||||
rows.extend(outputs)
|
||||
write_json(path, rows)
|
||||
correct = sum(row['arms'][label]['correct'] for row in rows)
|
||||
print(label, split_name, 'correct', correct, '/', len(rows), flush=True)
|
||||
|
||||
|
||||
def main():
|
||||
p = argparse.ArgumentParser(description=__doc__)
|
||||
for name in ('source', 'prior', 'out'):
|
||||
p.add_argument('--'+name, required=True, type=Path)
|
||||
p.add_argument('--prefix', choices=('student', 'reference'), required=True)
|
||||
args = p.parse_args()
|
||||
torch.set_num_threads(1)
|
||||
torch.manual_seed(72504)
|
||||
_, prior = load_locked(args.source, args.prior)
|
||||
tasks = [x for x in prior['problems']['fit'] if x['task']=='lookup']
|
||||
protocol = args.out/'protocol.json'
|
||||
if fingerprint(protocol) != '6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef':
|
||||
raise ValueError('Unknown combination study protocol')
|
||||
validation = json.loads(protocol.read_text())['splits']['validation']
|
||||
old = args.prior/'final/lisa.pt'
|
||||
if fingerprint(old) != ADAPTER_SHA:
|
||||
raise ValueError('Unknown baseline checkpoint')
|
||||
directory = args.out/('trajectory-'+args.prefix)
|
||||
directory.mkdir(exist_ok=True)
|
||||
config = json.loads((args.source/'model_config.json').read_text())
|
||||
model = StreamingLM(args.source/'weights', config, seconds=172800, process_swap_limit_kib=None)
|
||||
c = model.config
|
||||
rope = c['rope_parameters']
|
||||
adapters = {i: LearnableSharingAttention(c['hidden_size'], c['num_attention_heads'],
|
||||
c['num_key_value_heads'], 40, rope['rope_theta'], rope['partial_rotary_factor'],
|
||||
bias=c.get('attention_bias', False)) for i in SITES}
|
||||
tail = TorchTail(model, SITES[0], adapters)
|
||||
tail.adapters.load_state_dict(torch.load(old, weights_only=True))
|
||||
teacher = FitCapture(model, 0)
|
||||
teacher.sites = SITES
|
||||
opt = torch.optim.AdamW(tail.parameters(), lr=0.0001, weight_decay=0.1)
|
||||
tok = Tokenizer.from_file(str(args.source/'tokenizer.json'))
|
||||
if args.prefix == 'student':
|
||||
validate_checkpoint(model, tok, adapters, validation, prior['protocol'],
|
||||
args.out/'validation-prior-lisa.json')
|
||||
statefile = directory/'resume.pt'
|
||||
rows = []
|
||||
if statefile.exists():
|
||||
state = torch.load(statefile, weights_only=True)
|
||||
rows = state['rows']
|
||||
tail.adapters.load_state_dict(state['weights'])
|
||||
opt.load_state_dict(state['optimizer'])
|
||||
if [r['id'] for r in rows] != [x['id'] for x in tasks[:len(rows)]]:
|
||||
raise ValueError('Training prefix mismatch')
|
||||
embedding = model.tensors[PREFIX+'embed_tokens.weight']
|
||||
|
||||
def chunks():
|
||||
yield from weight_chunks(embedding, 0, embedding.shape[0], rows=1024)
|
||||
|
||||
captures = {}
|
||||
final = args.prior/'final'
|
||||
if args.prefix == 'reference' and (final/'verified-fit-capture.json').is_file():
|
||||
try:
|
||||
captures = verified_fit_captures(final, tasks)
|
||||
except (OSError, ValueError, KeyError) as exc:
|
||||
print('Using full native forward for reference prefixes:', exc, flush=True)
|
||||
|
||||
for offset, item in enumerate(tasks[len(rows):]):
|
||||
text = prompt(item['question'])
|
||||
base = tok.encode(text, add_special_tokens=False).ids
|
||||
if args.prefix == 'student':
|
||||
rollout = evaluate(model, tok, [item], {'student': SITES}, adapters)[0]['arms']['student']
|
||||
sampled = rollout['tokens']
|
||||
else:
|
||||
complete = tok.encode(text+str(item['answer'])+STOP_TEXT[0], add_special_tokens=False).ids
|
||||
assert complete[:len(base)] == base
|
||||
sampled = complete[len(base):]
|
||||
ids = torch.tensor([base+sampled])
|
||||
lengths = torch.tensor([ids.shape[1]])
|
||||
if captures:
|
||||
try:
|
||||
cached = replay_teacher_inputs(tail, captures[item['id']], ids, len(base), lengths)
|
||||
except (OSError, ValueError, KeyError) as exc:
|
||||
print('Using full native forward for reference prefixes:', exc, flush=True)
|
||||
captures = {}
|
||||
if not captures or offset == 0:
|
||||
inputs = full_teacher_inputs(model, teacher, ids, lengths)
|
||||
if captures:
|
||||
if all(torch.equal(a, b) for a, b in zip(inputs, cached)):
|
||||
print('Reference cache matches full native target, residual and donor', flush=True)
|
||||
else:
|
||||
print('Reference cache differs. Using full native forward', flush=True)
|
||||
captures = {}
|
||||
else:
|
||||
inputs = cached
|
||||
target, residual, donor = inputs
|
||||
opt.zero_grad(set_to_none=True)
|
||||
student, _ = tail(residual, donor, lengths, 'lisa', SITES)
|
||||
span = slice(len(base)-1, -1)
|
||||
loss = reverse_kl(student[0, span], target[0, span], chunks)
|
||||
loss.backward()
|
||||
if not torch.isfinite(loss) or any(p.grad is None or not torch.isfinite(p.grad).all() for p in tail.parameters()):
|
||||
raise FloatingPointError('Invalid reverse KL update')
|
||||
opt.step()
|
||||
rows.append({'id': item['id'], 'tokens': sampled, 'reverse_kl':float(loss.detach())})
|
||||
checkpoint(statefile, {'rows':rows,'weights':tail.adapters.state_dict(),'optimizer':opt.state_dict()})
|
||||
print(args.prefix, len(rows), '/', len(tasks), flush=True)
|
||||
checkpoint(directory/'adapter.pt', tail.adapters.state_dict())
|
||||
write_json(directory/'trace.json', rows)
|
||||
validate_checkpoint(model, tok, adapters, validation, prior['protocol'],
|
||||
directory/('validation-'+args.prefix+'.json'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,56 @@
|
||||
# 三层跨层注意力共享的两种改进实验
|
||||
|
||||
复用 Qwen3.5-2B 中层号为 15、19、23 的三个全注意力接收层(按整个模型从零编号),在新的查表任务上评估完整整数答案。上一轮第二个训练轮次的 LiSA 检查点作为轨迹蒸馏的起点,适配器 SHA-256 为 `c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29`。
|
||||
|
||||
论文库中的三个条目是 LiSA(2197656)、AdaRank(2204577)和 MiniLLM(2176556)。LiSA 提供跨层共享与低秩修正。AdaRank 用模型分歧估计各模块所需的相对秩,本实验改用逐层恢复对完整答案的影响估计秩。MiniLLM 用学生轨迹和逆 KL 做蒸馏,本实验使用贪心轨迹。 [LiSA 原文](https://aclanthology.org/2026.tacl-1.30/) · [AdaRank 原文](https://arxiv.org/abs/2408.09015) · [MiniLLM 原文](https://arxiv.org/abs/2306.08543)
|
||||
|
||||
## 题集与验证
|
||||
|
||||
8 对诊断题用于为三个层分配秩,8 对验证题用于在两个分秩训练轮次之间选检查点,32 对新留出题用于最后的配对比较。每对保持键、查询和表格顺序一致,交换目标键和一个干扰键的值。训练使用上一轮的 24 道拟合题。生成上限为 24 个 token,判分要求正常结束并能提取完整整数。主指标是完整答案准确率,次指标是同一对的两个答案都正确的比例。准确率差的 bootstrap 以题对为重采样单位。
|
||||
|
||||
## 层敏感度与秩分配
|
||||
|
||||
依次用原生 Q/K 恢复单个接收层,其余层使用上一轮训练的 LiSA。在诊断集上恢复正确答案净增最多的层取秩 48,其次取 40,最后取 32。同分时层号小者优先。恢复分数并列时会弱化对敏感度排序的解释。对照包括均匀秩和反向分配,以及关闭跨层分数输入后的均匀秩和敏感度分配。关闭共享输入时在融合网络前将供给层的分数通道置零。每组名义参数量一致,置零通道对应的权重不会获得有效训练信号。
|
||||
|
||||
另在相同的 16 道诊断题上,分别为原模型、已有 LiSA 和三个逐层恢复条件计算标准答案各 token 的全词表对数概率,包含结束符。按题保存结果,用于观察恢复一层后,模型是否给正确答案分配了更大的概率。分秩仍按预先冻结的完整答案正确数与同分规则执行。
|
||||
|
||||
分秩实验沿用上一轮教师分数与训练题的缓存。五组从固定种子初始化,各做两轮、每轮 24 步。按验证正确数选择检查点,同分取较早轮次。四组交互项为共享时分秩相对均匀秩的增益,减去关闭共享输入时的同一增益。反向分配用于检验高秩是否确实给对了层。
|
||||
|
||||
在远程训练环境中,用同一配置、训练代码和种子重新初始化五组适配器,按层核对参数摘要。相同秩配置的共享开启组与关闭组逐层完全相同。第 15 层在五组中均为秩 40,五组起始权重一致。第 19 和 23 层各有三种起始状态,对应三种秩分配。因此,分秩对照测量整套秩配置及其训练效果。 [初始参数核验](../results/lisa-combinations/rank-initialization.json)
|
||||
|
||||
留出答卷还会列出每项两组比较中从错变对、从对变错的题号。对跨层共享与分秩的组合,单列两个单项均答错而组合答对的题,以及两单项均答对而组合答错的题,同时附上关闭共享且使用均匀秩时的结果。这些题号解释净正确数的来源,四组交互项衡量两种改动的增益是否相互影响。另将敏感度分秩、学生前缀蒸馏和标准答案前缀蒸馏分别与上一轮实际使用的 LiSA 检查点逐题比较,报告净正确率差、按题对重采样的区间以及得失题号。均匀秩组使用本轮验证集选择检查点,因此与上一轮的 LiSA 分别列出。
|
||||
|
||||
## 学生轨迹蒸馏
|
||||
|
||||
在同一批 8 对验证题上,分别生成起始检查点、学生前缀组和标准答案前缀组三种完整答卷,并用冻结的分词器从 token 重算判分。三个检查点预先指定。验证答卷可用于在留出评估之前判断轨迹训练是否值得进一步研究。
|
||||
|
||||
两组均从上一轮 LiSA 权重开始,依次在相同 24 道训练题上各更新一次。学生轨迹组每步先用更新前的学生生成完整的贪心回答,在这些前缀上最小化学生对原模型的全词表逆 KL。参考轨迹组使用标准答案前缀,学习率、优化器和题序相同。两组均使用最后一步权重。生成路径固定时反向传播下一 token 分布的梯度。这是借鉴 MiniLLM 的简化方法。两组的训练步数相等,生成与训练 token 数和实际训练开销可不同。
|
||||
|
||||
学生前缀随更新变化,当前学生组以提交 `2338679` 的蒸馏代码逐题运行原生教师。标准答案前缀固定,参考组可以复用上一轮保存的第 15 层输入及第 11 层供给分数。先核验缓存回执、24 个文件的摘要、题序,再逐题核对完整 token 序列与答案起点。每次启动或续跑时,首道待训题同时走完整前向和缓存路径,逐元素核对教师最终隐状态、接收层输入和供给分数。三者完全相等后,后续题才使用缓存。缓存缺失或核对不符时,以完整教师前向继续。分秩组使用同一份缓存回执。参考组实际采用的路径由训练日志记录,解释训练耗时需考虑这项缓存复用。
|
||||
|
||||
## 复跑顺序
|
||||
|
||||
使用上一轮远程 CPU Python 环境和完整仓库依赖。所有命令共用 `--source`(冻结模型目录)、`--prior`(上一轮包含 frozen.json 和 final 子目录的作业目录)、`--out`(本轮独立目录)。按顺序运行以下 Python 模块。
|
||||
|
||||
1. `crossqkv.lisa_combination_screen` 冻结清单并生成四种诊断条件。
|
||||
2. `crossqkv.lisa_trajectory_train --prefix student` 和 `crossqkv.lisa_trajectory_train --prefix reference` 训练两个轨迹条件。
|
||||
3. `crossqkv.lisa_rank_compare` 根据诊断分数分配秩,训练五个条件。
|
||||
4. `crossqkv.lisa_combination_eval` 生成十组留出答卷,逐题校验并写入 holdout/audit.json。
|
||||
|
||||
冻结清单 SHA-256 为 `6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef`。秩分配与轨迹方法分别和各自匹配的对照比较。跨路线的总训练预算不同。
|
||||
|
||||
留出评估按每批两题记录生成耗时,从提示词编码前计时到回答解析结束,同时汇总生成 token 数。远程 CPU 在多个作业间共享,这些运行记录用于解释实际开销。要验证部署加速,还需要在受控负载下重复测量。
|
||||
|
||||
标准答案前缀组运行期间,逐字节读取远程底座权重,核对 4,548,221,488 字节权重分片的 SHA-256 与冻结清单及上游摘要相同,并复核分词器和配置。[底座文件核验](../results/lisa-combinations/native-files.json)
|
||||
|
||||
已记录远程部署的 13 个实现与测试文件摘要。部署目录中的 `crossqkv/lisa_full_answer.py` 来自提交 `c53d78b`。它与本轮主线版本的差异限于该模块自身的筛选命令行入口,本轮调用的 `evaluate`、`prompt`、`grade` 等函数一致。 [远程代码摘要](../results/lisa-combinations/execution.sha256)
|
||||
|
||||
## 蒸馏权重更新幅度的补充实验
|
||||
|
||||
两个蒸馏终点在验证集分别答对 2/16 和 3/16,低于起始 LiSA 的 5/16。在主实验留出集开始生成前,为这两个终点各固定一个权重中点。对每个适配器张量,取起点和终点的算术平均,以 float64 计算后还原原精度。两个条件共享原底座,推理参数量与原 LiSA 相同,不增加训练步数。这个处理缩短了已训练的总权重位移,其效果可能与从头减半学习率不同。
|
||||
|
||||
在原定十组评估结束后,用相同的 16 道验证题、解码设置和完整答案判分比较起点、两个原终点、两个中点。单一插值系数固定为 0.5。任一中点在完整答案正确数上严格超过起点时,再对两个中点评估同一批 32 对留出题,与已生成的起点、相应终点和另一种前缀中点作配对比较。两者均未超过起点时,这项补充实验止于验证集。公布每组正确数、交换前后均正确的题对数以及各对照的救回和丢失题号。留出集差值以题对为单位、用固定种子 72505 做 10,000 次重采样。该补充分析因观察到验证退步而提出,结果单独记入 `trajectory-midpoint` 目录。
|
||||
|
||||
`python -m crossqkv.lisa_trajectory_midpoint` 接受与主实验一致的 `--source`、`--prior`、`--out`。附加 `--prepare-only` 时仅校验三个端点、生成两个中点及其摘要。正常运行会复核模型、已有答卷和已生成的中点,从每组已验证的完整答卷后续跑。
|
||||
|
||||
已在实验服务器用两个真实训练终点生成中点,并用独立实现逐元素复算。每个中点的 12 个张量、2,476,032 个参数均与按原精度取整的算术中点完全一致。[端点摘要及权重核验](../results/lisa-combinations/trajectory-midpoint/preparation.json)
|
||||
@@ -0,0 +1,81 @@
|
||||
# Qwen3.5-2B 三层 LiSA 共享实验结果
|
||||
|
||||
## 逐层恢复与分秩
|
||||
|
||||
在 Qwen3.5-2B 的 8 对查表题上,单独恢复第 19 层的原生 Q/K,16 道完整答案全部正确。恢复第 15 层答对 15 道,恢复第 23 层答对 1 道。其余两个接收层继续使用同一份 LiSA 权重,每次恢复都会影响下游计算。层号按整个模型从零开始。 [冻结协议](LISA_COMBINATIONS_PROTOCOL.md)
|
||||
|
||||
| 条件 | 完整答案正确 | 同一对交换前后均正确 |
|
||||
|---|---:|---:|
|
||||
| 原 LiSA | 0/16 | 0/8 |
|
||||
| 恢复第 15 层 | 15/16 | 7/8 |
|
||||
| 恢复第 19 层 | 16/16 | 8/8 |
|
||||
| 恢复第 23 层 | 1/16 | 0/8 |
|
||||
|
||||
四组共 64 次生成均得到完整整数。逐题复核使用冻结分词器重新解码 token,检查正常结束或长度上限、题目 ID、标准答案及记分。复核回执保存了原始答卷、题集、分词器及起始适配器的 SHA-256。 [逐题答卷及复核回执](../results/lisa-combinations/diagnostic/)
|
||||
|
||||
这组题可以区分模型是否跟随目标值变化,以及变化后是否答对。原 LiSA 在 8 对题上全都重复了交换前的数字,尽管每对的正确答案都变了。16 个错误答案中,12 个是该题表内其他键的值,4 个是表外数字。恢复第 15 层后,8 对的回答都随交换变化,7 对两次都正确。恢复第 19 层后,8 对两次都正确。恢复第 23 层后,4 对的回答发生变化,但没有一对两次都正确。这些计数来自同一诊断集,用于解释按层分秩的依据。 [成对题目](../results/lisa-combinations/protocol.json) · [四组原始回答](../results/lisa-combinations/diagnostic/)
|
||||
|
||||
第 15 层和第 19 层的正确性只在一题上有差异。目标键位于第 9 项,值为 39,恢复第 15 层生成第 8 项的 98,恢复第 19 层生成 39。交换表项后,两种恢复条件都正确生成 77。每次去掉一对题重新排序,第 23 层在 8 次中均居末位。去掉上述题对时,第 15 层和第 19 层打平,预定的同分规则将第 15 层排在前面。其他 7 次均为第 19 层领先。从这 8 对题中有放回地抽取 8 对,漏掉唯一分出高下的题对的比例为 (7/8)⁸,即 34.4%,此时第 15 层按同分规则排第一。其余 65.6% 的抽样中第 19 层排第一,第 23 层在所有抽样中均排最后。这个比例描述当前诊断题的重采样结果。 [配对复核](../results/lisa-combinations/diagnostic/verified.json)
|
||||
|
||||
按全部诊断题,敏感度分配给第 15、19、23 层的秩依次为 **40、48、32**。均匀对照为 40、40、40,反向对照为 40、32、48。上述结果衡量恢复原生 Q/K 的效果。增加低秩参数能救回多少答案,以及学生轨迹蒸馏能否改善生成,需在训练后用 32 对新留出题检验。
|
||||
|
||||
五个分秩条件各有 2,476,032 个适配器参数。关闭共享时,三个接收层各有 8 个供给分数通道被置零,每个通道连接到 256 个融合单元。因此共有 6,144 个权重(占 0.248%)的输入恒为零,其余 2,469,888 个权重保留连接。分别在开启和关闭共享的条件内比较分秩与均匀秩,两侧的连接数各自相等。
|
||||
|
||||
### 正确答案的概率
|
||||
|
||||
原 LiSA 对正确首位数字的平均概率为 **10.2%**。恢复第 15 或第 19 层后,这一概率分别达到 **76.8%** 和 **78.3%**。在已给定正确首位数字时,两种恢复条件对正确次位数字的平均概率都超过 99%。恢复第 23 层也在全部 16 题上提高了整段正确答案的概率,但首位数字的平均概率仅升至 **12.5%**,最终只答对 1 题。
|
||||
|
||||
| 条件 | 正确首位数字平均概率 | 给定正确首位后的次位数字平均概率 | 整段正确答案平均负对数概率(nats) |
|
||||
|---|---:|---:|---:|
|
||||
| 原生模型 | 96.8% | 99.9% | 0.035 |
|
||||
| 原 LiSA | 10.2% | 59.8% | 3.917 |
|
||||
| 恢复第 15 层 | 76.8% | 99.6% | 0.305 |
|
||||
| 恢复第 19 层 | 78.3% | 99.6% | 0.274 |
|
||||
| 恢复第 23 层 | 12.5% | 60.0% | 3.328 |
|
||||
|
||||
每个条件在同样的 16 题上按全词表评分。每题的整段分数为两个正确数字及结束符的负对数概率之和,再对题目取平均。在贪心解码得分仅相差一题的第 15、19 层之间,恢复第 19 层在 9 题上给整段标准答案更高概率,第 15 层在另外 7 题更高。两者唯一答对情况不同的题以数字 3 开头,恢复第 15 层和第 19 层给这个首位数字的概率分别是 39.9% 和 62.5%。这组数据支持优先关注第 15、19 层,对二者的内部排序证据较弱。原分配继续按预定规则训练。 [逐题逐 token 概率](../results/lisa-combinations/diagnostic/diagnostic-gold-log-probs.json) · [分词器、概率统计与贪心回答核验](../results/lisa-combinations/diagnostic/gold-probability-check.json)
|
||||
|
||||
## 固定参数预算下的分秩验证
|
||||
|
||||
两个共享组分别训练 48 步,使用同样的 24 个训练样本、题序及 2,476,032 个参数。第 15、19、23 层均取秩 40 的对照组复现了原 LiSA,48 步训练损失记录、选中检查点的各参数张量和权重文件 SHA-256 全部一致。两者在验证集的 16 个完整回答也逐 token 相同。 [均匀秩配置](../results/lisa-combinations/shared-uniform/config.json) · [两轮原始答卷](../results/lisa-combinations/shared-uniform/trace.json) · [参数与训练核验](../results/lisa-combinations/shared-uniform/verified.json)
|
||||
|
||||
| 第 15、19、23 层的秩 | 第 1 轮答对 | 第 2 轮答对 | 选中轮次 | 交换前后均正确 |
|
||||
|---|---:|---:|---:|---:|
|
||||
| 均匀分配 40、40、40 | 3/16 | 5/16 | 2 | 1/8 |
|
||||
| 按敏感度分配 40、48、32 | 2/16 | 3/16 | 2 | 0/8 |
|
||||
|
||||
在第一轮,敏感度分秩比均匀秩少答对 1 道。第二轮两组有 12/16 题逐 token 相同,分秩丢失 2 道,救回 0 道。两道退步都来自第 003 对题。均匀组随目标值交换从 93 改答 83,分秩组两次都回答表格第 1 项的 33。总体上,换值后分秩组有 3/8 对改变回答,均匀组有 2/8 对改变回答。只有均匀组在其中一对上两次都给出了目标值。 [分秩配置](../results/lisa-combinations/shared-allocated/config.json) · [分秩两轮答卷](../results/lisa-combinations/shared-allocated/trace.json) · [分秩核验](../results/lisa-combinations/shared-allocated/verified.json) · [两组逐题比较](../results/lisa-combinations/rank-validation.json)
|
||||
|
||||
如果逐题任选敏感度分秩或学生前缀蒸馏的回答,16 题里最多能答对 3 道。再允许选原 LiSA 的回答,上限是 5 道。两条路线在这批验证题上都没有贡献原 LiSA 答错的新题。预定的 32 对新留出题用于检验这一结果能否推广。
|
||||
|
||||
### 同一笔秩预算在注意力分数上能换来多少改善
|
||||
|
||||
取 24 道训练题的原生注意力分数,把题号按奇偶分半。在一半题上用第 11 层的 8 个头线性拟合三个接收层的分数(含截距),在另一半逐题计算剩余误差,两半互换。对每一题、每一层、每一个头,直接用奇异值分解求剩余分数矩阵的最佳秩近似。下表是所有 token 对的均方误差,各题等权。这项分析可用旧缓存复跑,不需要加载底座。 [计算脚本](../crossqkv/lisa_rank_residuals.py) · [逐题误差与七种分配](../results/lisa-combinations/fit-rank-residuals.json)
|
||||
|
||||
| 接收层 | 秩 32 | 秩 40 | 秩 48 | 从 40 增至 48 减少的误差 |
|
||||
|---|---:|---:|---:|---:|
|
||||
| 15 | 0.03952 | 0.02078 | 0.01084 | 0.00994 |
|
||||
| 19 | 0.04404 | 0.02256 | 0.01152 | 0.01104 |
|
||||
| 23 | 0.04279 | 0.02261 | 0.01179 | 0.01082 |
|
||||
|
||||
第 19 层从 40 增到 48,平均误差下降 0.01104。为它让出这 8 个秩,第 23 层从 40 降到 32,误差上升 0.02018。三层平均误差由均匀秩的 0.02198 升到敏感度分秩的 0.02503,增加 13.9%。对每一道训练题,把 32、40、48 任意分给三层的六种排列,其误差都高于三层各取 40。另用 QR 分解拟合供给头映射,显式重建各秩的矩阵,288 个逐题、逐层误差(含秩 0)与奇异值计算的最大绝对差小于 2×10⁻¹⁴。
|
||||
|
||||
这项近似用同一个第 11 层预测三个接收层,并可逐题看到原生目标矩阵。实际 LiSA 依次把第 11、15、19 层的分数传给第 15、19、23 层,后两次传递的是上一接收层的融合输出。模型还须从隐藏状态预测局部分数。13.9% 衡量的是固定第 11 层时的矩阵近似误差,实际链式共享的效果由完整答案检验。 [训练前向](../crossqkv/lisa_tail.py) · [贪心生成前向](../crossqkv/lisa_generate.py)
|
||||
|
||||
把供给改成上一全注意力层的**原生分数**后,均匀秩的三层平均误差为 0.01682,敏感度分秩为 0.01901(增加 13.0%),反向分秩为 0.01885(增加 12.1%)。六种非均匀排列在每道题上的误差仍然都更高,但两种分秩的相对顺序随供给层而改变。固定第 11 层时,敏感度分秩在 23/24 题上优于反向分秩。使用相邻层原生分数时,这一数字降至 2/24。两种分析都支持均匀秩在这七个配置里的分数近似优势,要判断多给第 19 层还是第 23 层更有利于完整答案,仍须比较训练后的链式模型。脚本选项为 `--adjacent-native`。独立 QR 拟合及逐头矩阵重建复核了 288 个误差值,最大绝对差小于 2×10⁻¹⁴。 [相邻原生供给的逐题数据](../results/lisa-combinations/fit-rank-adjacent-native.json)
|
||||
|
||||
## 两种蒸馏前缀的完整答案
|
||||
|
||||
两种蒸馏在同一批 16 道验证题上都丢掉了原 LiSA 答对的题,也都没有救回原本答错的题。学生前缀组比标准答案前缀组少答对 1 道。三组共 48 个回答均正常结束,可解析出完整整数。 [起始 LiSA 答卷](../results/lisa-combinations/validation-prior-lisa.json) · [学生前缀答卷](../results/lisa-combinations/trajectory-student/validation-student.json) · [标准答案前缀答卷](../results/lisa-combinations/trajectory-reference/validation-reference.json)
|
||||
|
||||
| 条件 | 完整答案正确 | 交换前后均正确 | 相对起始 LiSA 救回/丢失 |
|
||||
|---|---:|---:|---:|
|
||||
| 起始 LiSA | 5/16 | 1/8 | — |
|
||||
| 标准答案前缀蒸馏 | 3/16 | 0/8 | 0/2 |
|
||||
| 学生前缀蒸馏 | 2/16 | 0/8 | 0/3 |
|
||||
|
||||
第 003 对题的目标键在第 11 项,交换后其值从 93 变为 83。起始 LiSA 两次都答对,两种蒸馏都连续两次读出第 5 项的 43。这个退步在只使用标准答案前缀训练时也出现了。第 006 对的第一题是两种蒸馏在正确性上唯一有差别的题,标准答案前缀组答对 78,学生前缀组生成了表中没有的 38。两种蒸馏在全部 16 题中有 13 题生成完全相同的 token。 [逐题得失与题对比较](../results/lisa-combinations/trajectory-validation.json)
|
||||
|
||||
两组从同一份 LiSA 权重出发,在相同的 24 道训练题上按相同顺序各完成 24 次逆 KL 更新,各有 72 个下一 token 预测位置。11 道题的两条训练轨迹完全相同,全部 72 个位置中有 25 个位置的前缀不同。标准答案前缀组启动时,缓存路径的教师最终隐状态、接收层输入与供给分数同完整原生前向逐元素相等。 [学生训练轨迹](../results/lisa-combinations/trajectory-student/trace.json) · [标准答案训练轨迹](../results/lisa-combinations/trajectory-reference/trace.json)
|
||||
|
||||
两组验证答卷已用冻结的分词器重新判分,并核对优化器更新次数、最后一个训练检查点和实际评估的权重。本次验证支持这套蒸馏配置在这 8 对题上没有改善最终答案。32 对新留出题用于检验这个结果能否推广。 [学生组核验](../results/lisa-combinations/trajectory-student/verified.json) · [标准答案组核验](../results/lisa-combinations/trajectory-reference/verified.json) · [实验协议](LISA_COMBINATIONS_PROTOCOL.md)
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "94<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 94,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 75,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "94<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 94,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
22,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "73<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 73,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
22,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "73<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 73,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
20,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "52<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 52,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 22,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
20,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "52<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 52,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "90<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 90,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 21,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "90<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 90,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 74,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "99<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 99,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "99<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 99,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "61<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 61,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 77,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "61<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 61,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 40,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
20,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "50<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 50,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 67,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
20,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "50<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 50,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 61,
|
||||
"arms": {
|
||||
"baseline": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,578 @@
|
||||
[
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"gold": 76,
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.024837493896484375,
|
||||
-0.0002384185791015625,
|
||||
-2.6702880859375e-05
|
||||
],
|
||||
"baseline": [
|
||||
-3.1313209533691406,
|
||||
-0.6160259246826172,
|
||||
-0.0002994537353515625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.32304954528808594,
|
||||
-0.000881195068359375,
|
||||
-2.47955322265625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.7100887298583984,
|
||||
-0.0026397705078125,
|
||||
-0.0001506805419921875
|
||||
],
|
||||
"restore-23": [
|
||||
-2.4421043395996094,
|
||||
-0.5711994171142578,
|
||||
-0.0023059844970703125
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"gold": 75,
|
||||
"tokens": [
|
||||
22,
|
||||
20,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.014467239379882812,
|
||||
-0.000675201416015625,
|
||||
-2.09808349609375e-05
|
||||
],
|
||||
"baseline": [
|
||||
-3.0086593627929688,
|
||||
-2.8373260498046875,
|
||||
-0.0002994537353515625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.29117584228515625,
|
||||
-0.0007476806640625,
|
||||
-2.47955322265625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.6275234222412109,
|
||||
-0.022729873657226562,
|
||||
-0.000133514404296875
|
||||
],
|
||||
"restore-23": [
|
||||
-2.3499526977539062,
|
||||
-2.0442771911621094,
|
||||
-0.0018825531005859375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"gold": 39,
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.0038299560546875,
|
||||
-0.0001392364501953125,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"baseline": [
|
||||
-1.949319839477539,
|
||||
-0.018270492553710938,
|
||||
-6.67572021484375e-05
|
||||
],
|
||||
"restore-15": [
|
||||
-0.2358112335205078,
|
||||
-0.000335693359375,
|
||||
-1.52587890625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.10454750061035156,
|
||||
-8.58306884765625e-05,
|
||||
-4.9591064453125e-05
|
||||
],
|
||||
"restore-23": [
|
||||
-1.6455535888671875,
|
||||
-0.04067420959472656,
|
||||
-0.0001983642578125
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"gold": 76,
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.0050868988037109375,
|
||||
-0.0002613067626953125,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"baseline": [
|
||||
-0.32277679443359375,
|
||||
-1.6059131622314453,
|
||||
-9.1552734375e-05
|
||||
],
|
||||
"restore-15": [
|
||||
-0.13455772399902344,
|
||||
-0.0006656646728515625,
|
||||
-2.47955322265625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.0066509246826171875,
|
||||
-0.0039806365966796875,
|
||||
-4.1961669921875e-05
|
||||
],
|
||||
"restore-23": [
|
||||
-0.36336517333984375,
|
||||
-1.0072898864746094,
|
||||
-0.00034332275390625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"gold": 49,
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.0087738037109375,
|
||||
-0.00025177001953125,
|
||||
-2.09808349609375e-05
|
||||
],
|
||||
"baseline": [
|
||||
-2.0372848510742188,
|
||||
-0.009572982788085938,
|
||||
-0.0003986358642578125
|
||||
],
|
||||
"restore-15": [
|
||||
-0.09753608703613281,
|
||||
-0.00032806396484375,
|
||||
-4.00543212890625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.2421588897705078,
|
||||
-0.00037384033203125,
|
||||
-0.0001430511474609375
|
||||
],
|
||||
"restore-23": [
|
||||
-1.860239028930664,
|
||||
-0.04126930236816406,
|
||||
-0.0017147064208984375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"gold": 22,
|
||||
"tokens": [
|
||||
17,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.002490997314453125,
|
||||
-0.0012187957763671875,
|
||||
-1.1444091796875e-05
|
||||
],
|
||||
"baseline": [
|
||||
-3.9617557525634766,
|
||||
-0.8179492950439453,
|
||||
-0.000637054443359375
|
||||
],
|
||||
"restore-15": [
|
||||
-0.035186767578125,
|
||||
-0.027009963989257812,
|
||||
-2.47955322265625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.43062400817871094,
|
||||
-0.0025691986083984375,
|
||||
-0.000225067138671875
|
||||
],
|
||||
"restore-23": [
|
||||
-3.3459339141845703,
|
||||
-0.8381309509277344,
|
||||
-0.0040531158447265625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"gold": 63,
|
||||
"tokens": [
|
||||
21,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.012937545776367188,
|
||||
-0.0007839202880859375,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"baseline": [
|
||||
-3.4249229431152344,
|
||||
-0.07147789001464844,
|
||||
-0.0001373291015625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.06400489807128906,
|
||||
-0.010293960571289062,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"restore-19": [
|
||||
-0.03154754638671875,
|
||||
-0.000339508056640625,
|
||||
-0.0001220703125
|
||||
],
|
||||
"restore-23": [
|
||||
-2.2207107543945312,
|
||||
-0.12037086486816406,
|
||||
-0.0005855560302734375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"gold": 21,
|
||||
"tokens": [
|
||||
17,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.000797271728515625,
|
||||
-0.0002193450927734375,
|
||||
-5.7220458984375e-06
|
||||
],
|
||||
"baseline": [
|
||||
-5.151775360107422,
|
||||
-1.0628166198730469,
|
||||
-0.00031280517578125
|
||||
],
|
||||
"restore-15": [
|
||||
-0.009588241577148438,
|
||||
-0.005767822265625,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"restore-19": [
|
||||
-0.06529045104980469,
|
||||
-0.0006694793701171875,
|
||||
-0.0003108978271484375
|
||||
],
|
||||
"restore-23": [
|
||||
-3.9648704528808594,
|
||||
-0.5995655059814453,
|
||||
-0.0019969940185546875
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"gold": 74,
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.01715850830078125,
|
||||
-0.0021381378173828125,
|
||||
-3.814697265625e-06
|
||||
],
|
||||
"baseline": [
|
||||
-2.838041305541992,
|
||||
-0.9877510070800781,
|
||||
-4.57763671875e-05
|
||||
],
|
||||
"restore-15": [
|
||||
-1.0562248229980469,
|
||||
-0.0022220611572265625,
|
||||
-3.814697265625e-06
|
||||
],
|
||||
"restore-19": [
|
||||
-0.03605461120605469,
|
||||
-0.016172409057617188,
|
||||
-3.24249267578125e-05
|
||||
],
|
||||
"restore-23": [
|
||||
-2.322092056274414,
|
||||
-1.1123313903808594,
|
||||
-0.0003261566162109375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"gold": 29,
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.0016422271728515625,
|
||||
-0.0002899169921875,
|
||||
-3.814697265625e-06
|
||||
],
|
||||
"baseline": [
|
||||
-5.034467697143555,
|
||||
-0.5872783660888672,
|
||||
-8.20159912109375e-05
|
||||
],
|
||||
"restore-15": [
|
||||
-0.2858295440673828,
|
||||
-0.0021343231201171875,
|
||||
-3.814697265625e-06
|
||||
],
|
||||
"restore-19": [
|
||||
-0.23784446716308594,
|
||||
-0.000537872314453125,
|
||||
-4.9591064453125e-05
|
||||
],
|
||||
"restore-23": [
|
||||
-4.553504943847656,
|
||||
-0.6740207672119141,
|
||||
-0.0006809234619140625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"gold": 39,
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.013723373413085938,
|
||||
-0.00012969970703125,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"baseline": [
|
||||
-5.65399169921875,
|
||||
-0.131378173828125,
|
||||
-0.000743865966796875
|
||||
],
|
||||
"restore-15": [
|
||||
-0.9178924560546875,
|
||||
-0.000484466552734375,
|
||||
-1.71661376953125e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.47063255310058594,
|
||||
-0.0001010894775390625,
|
||||
-0.00031280517578125
|
||||
],
|
||||
"restore-23": [
|
||||
-4.959165573120117,
|
||||
-0.28261756896972656,
|
||||
-0.0032291412353515625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"gold": 77,
|
||||
"tokens": [
|
||||
22,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.23149681091308594,
|
||||
-0.000152587890625,
|
||||
-1.71661376953125e-05
|
||||
],
|
||||
"baseline": [
|
||||
-2.2939319610595703,
|
||||
-1.0310783386230469,
|
||||
-0.0007724761962890625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.4403190612792969,
|
||||
-0.0023441314697265625,
|
||||
-3.4332275390625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.29297637939453125,
|
||||
-0.0004711151123046875,
|
||||
-0.0002765655517578125
|
||||
],
|
||||
"restore-23": [
|
||||
-2.098073959350586,
|
||||
-0.8647232055664062,
|
||||
-0.00260162353515625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"gold": 40,
|
||||
"tokens": [
|
||||
19,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.014951705932617188,
|
||||
-0.0005702972412109375,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"baseline": [
|
||||
-1.4999065399169922,
|
||||
-0.39727783203125,
|
||||
-0.000370025634765625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.09920883178710938,
|
||||
-0.0010547637939453125,
|
||||
-7.62939453125e-06
|
||||
],
|
||||
"restore-19": [
|
||||
-0.059215545654296875,
|
||||
-0.004215240478515625,
|
||||
-0.00017547607421875
|
||||
],
|
||||
"restore-23": [
|
||||
-1.4863815307617188,
|
||||
-0.36647796630859375,
|
||||
-0.0021572113037109375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"gold": 67,
|
||||
"tokens": [
|
||||
21,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.144378662109375,
|
||||
-0.000316619873046875,
|
||||
-1.1444091796875e-05
|
||||
],
|
||||
"baseline": [
|
||||
-2.6766510009765625,
|
||||
-0.34818458557128906,
|
||||
-0.000194549560546875
|
||||
],
|
||||
"restore-15": [
|
||||
-0.09241104125976562,
|
||||
-0.0078125,
|
||||
-1.9073486328125e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.1442413330078125,
|
||||
-0.00060272216796875,
|
||||
-0.0001201629638671875
|
||||
],
|
||||
"restore-23": [
|
||||
-2.3896827697753906,
|
||||
-0.3394451141357422,
|
||||
-0.001068115234375
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"gold": 89,
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.012271881103515625,
|
||||
-0.000148773193359375,
|
||||
-2.6702880859375e-05
|
||||
],
|
||||
"baseline": [
|
||||
-4.154172897338867,
|
||||
-0.5092639923095703,
|
||||
-0.000244140625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.28399085998535156,
|
||||
-0.000385284423828125,
|
||||
-2.47955322265625e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.17025375366210938,
|
||||
-0.0014133453369140625,
|
||||
-0.0001506805419921875
|
||||
],
|
||||
"restore-23": [
|
||||
-3.85772705078125,
|
||||
-0.6171798706054688,
|
||||
-0.00144195556640625
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"gold": 61,
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"log_probs": {
|
||||
"native": [
|
||||
-0.03597068786621094,
|
||||
-0.0006103515625,
|
||||
-4.00543212890625e-05
|
||||
],
|
||||
"baseline": [
|
||||
-4.429452896118164,
|
||||
-0.06722450256347656,
|
||||
-0.000396728515625
|
||||
],
|
||||
"restore-15": [
|
||||
-0.4400196075439453,
|
||||
-0.0048809051513671875,
|
||||
-5.340576171875e-05
|
||||
],
|
||||
"restore-19": [
|
||||
-0.7014026641845703,
|
||||
-0.0012664794921875,
|
||||
-0.0002269744873046875
|
||||
],
|
||||
"restore-23": [
|
||||
-3.604585647583008,
|
||||
-0.2347412109375,
|
||||
-0.001617431640625
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"questions": 16,
|
||||
"scores_per_condition": 48,
|
||||
"mean_values": {
|
||||
"native": {
|
||||
"mean_gold_sequence_nll": 0.034574151039123535,
|
||||
"mean_gold_probability_by_position": [
|
||||
0.9682242448620498,
|
||||
0.9994912364442534,
|
||||
0.9999858142451772
|
||||
],
|
||||
"higher_gold_sequence_probability_than_baseline": 16
|
||||
},
|
||||
"baseline": {
|
||||
"mean_gold_sequence_nll": 3.9170196056365967,
|
||||
"mean_gold_probability_by_position": [
|
||||
0.10226646583984653,
|
||||
0.5978359563033113,
|
||||
0.9996817869409924
|
||||
],
|
||||
"higher_gold_sequence_probability_than_baseline": 0,
|
||||
"greedy_correct": 0
|
||||
},
|
||||
"restore-15": {
|
||||
"mean_gold_sequence_nll": 0.3046555519104004,
|
||||
"mean_gold_probability_by_position": [
|
||||
0.7682960002805064,
|
||||
0.9958208747441234,
|
||||
0.999979138680711
|
||||
],
|
||||
"higher_gold_sequence_probability_than_baseline": 16,
|
||||
"greedy_correct": 15
|
||||
},
|
||||
"restore-19": {
|
||||
"mean_gold_sequence_nll": 0.27448391914367676,
|
||||
"mean_gold_probability_by_position": [
|
||||
0.7832170789007052,
|
||||
0.9963902623442181,
|
||||
0.9998424217156324
|
||||
],
|
||||
"higher_gold_sequence_probability_than_baseline": 16,
|
||||
"greedy_correct": 16
|
||||
},
|
||||
"restore-23": {
|
||||
"mean_gold_sequence_nll": 3.3277788162231445,
|
||||
"mean_gold_probability_by_position": [
|
||||
0.12458921584706335,
|
||||
0.5997749958188688,
|
||||
0.9983642064347934
|
||||
],
|
||||
"higher_gold_sequence_probability_than_baseline": 16,
|
||||
"greedy_correct": 1
|
||||
}
|
||||
},
|
||||
"majority_gold_tokens_on_matching_generated_prefix": {
|
||||
"baseline": 1,
|
||||
"restore-15": 44,
|
||||
"restore-19": 46,
|
||||
"restore-23": 2
|
||||
},
|
||||
"majority_token_disagreements": [],
|
||||
"sha256": {
|
||||
"protocol.json": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
|
||||
"tokenizer.json": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42",
|
||||
"diagnostic-gold-log-probs.json": "7fb33eca323ab3ec45ceae8be77609e388fe88b2b77eb59c43726cc0c39b69e3",
|
||||
"baseline.json": "8f3fb8773fa790de01604db9a313365bab25a55c86b363eaf0269f94df020e8f",
|
||||
"restore-15.json": "53b2af36d1f5d5e960d1f7b22630f8f72d7e9a2016131747c48d7e5c17ef7fcb",
|
||||
"restore-19.json": "c1b158e61eaa98b1c24ead81363ef3193b392d36947f3199e7930fe199e5163a",
|
||||
"restore-23.json": "4513c537d5d957c1bfbe0e23741dad3d77cc76a08e7ff255e38661e9e7b58c8d"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "76<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 76,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 75,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
22,
|
||||
20,
|
||||
248046
|
||||
],
|
||||
"response": "75<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 75,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "39<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 39,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "76<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 76,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 22,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
17,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "22<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 22,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
21,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "63<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 63,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 21,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
17,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "21<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 21,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 74,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "74<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 74,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
24,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "98<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 98,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 77,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
22,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "77<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 77,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 40,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
19,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "40<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 40,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 67,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
21,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "67<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 67,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 61,
|
||||
"arms": {
|
||||
"restore-15": {
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "61<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 61,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "76<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 76,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 75,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
22,
|
||||
20,
|
||||
248046
|
||||
],
|
||||
"response": "75<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 75,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "39<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 39,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "76<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 76,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 22,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
17,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "22<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 22,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
21,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "63<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 63,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 21,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
17,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "21<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 21,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 74,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "74<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 74,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "39<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 39,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 77,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
22,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "77<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 77,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 40,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
19,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "40<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 40,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 67,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
21,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "67<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 67,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 61,
|
||||
"arms": {
|
||||
"restore-19": {
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "61<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 61,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "94<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 94,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 75,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "94<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 94,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
22,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "73<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 73,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 76,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "76<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 76,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
20,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "52<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 52,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 22,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
20,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"response": "52<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 52,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "90<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 90,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 21,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "90<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 90,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 74,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "99<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 99,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "99<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 99,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 39,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "61<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 61,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 77,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
21,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "67<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 67,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 40,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
20,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"response": "50<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 50,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 67,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
19,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "46<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 46,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 61,
|
||||
"arms": {
|
||||
"restore-23": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"protocol_sha256": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
|
||||
"tokenizer_sha256": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42",
|
||||
"baseline_adapter_sha256": "c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29",
|
||||
"answer_file_sha256": {
|
||||
"baseline.json": "8f3fb8773fa790de01604db9a313365bab25a55c86b363eaf0269f94df020e8f",
|
||||
"restore-15.json": "53b2af36d1f5d5e960d1f7b22630f8f72d7e9a2016131747c48d7e5c17ef7fcb",
|
||||
"restore-19.json": "c1b158e61eaa98b1c24ead81363ef3193b392d36947f3199e7930fe199e5163a",
|
||||
"restore-23.json": "4513c537d5d957c1bfbe0e23741dad3d77cc76a08e7ff255e38661e9e7b58c8d"
|
||||
},
|
||||
"questions": 16,
|
||||
"pairs": 8,
|
||||
"scores": {
|
||||
"baseline": {
|
||||
"correct": 0,
|
||||
"both_correct_pairs": 0,
|
||||
"complete_integer_answers": 16,
|
||||
"wrong_ids": [
|
||||
"diagnostic-000-0",
|
||||
"diagnostic-000-1",
|
||||
"diagnostic-001-0",
|
||||
"diagnostic-001-1",
|
||||
"diagnostic-002-0",
|
||||
"diagnostic-002-1",
|
||||
"diagnostic-003-0",
|
||||
"diagnostic-003-1",
|
||||
"diagnostic-004-0",
|
||||
"diagnostic-004-1",
|
||||
"diagnostic-005-0",
|
||||
"diagnostic-005-1",
|
||||
"diagnostic-006-0",
|
||||
"diagnostic-006-1",
|
||||
"diagnostic-007-0",
|
||||
"diagnostic-007-1"
|
||||
]
|
||||
},
|
||||
"restore-15": {
|
||||
"correct": 15,
|
||||
"both_correct_pairs": 7,
|
||||
"complete_integer_answers": 16,
|
||||
"wrong_ids": [
|
||||
"diagnostic-005-0"
|
||||
]
|
||||
},
|
||||
"restore-19": {
|
||||
"correct": 16,
|
||||
"both_correct_pairs": 8,
|
||||
"complete_integer_answers": 16,
|
||||
"wrong_ids": []
|
||||
},
|
||||
"restore-23": {
|
||||
"correct": 1,
|
||||
"both_correct_pairs": 0,
|
||||
"complete_integer_answers": 16,
|
||||
"wrong_ids": [
|
||||
"diagnostic-000-0",
|
||||
"diagnostic-000-1",
|
||||
"diagnostic-001-0",
|
||||
"diagnostic-002-0",
|
||||
"diagnostic-002-1",
|
||||
"diagnostic-003-0",
|
||||
"diagnostic-003-1",
|
||||
"diagnostic-004-0",
|
||||
"diagnostic-004-1",
|
||||
"diagnostic-005-0",
|
||||
"diagnostic-005-1",
|
||||
"diagnostic-006-0",
|
||||
"diagnostic-006-1",
|
||||
"diagnostic-007-0",
|
||||
"diagnostic-007-1"
|
||||
]
|
||||
}
|
||||
},
|
||||
"ranks_by_layer": {
|
||||
"allocated": {
|
||||
"19": 48,
|
||||
"15": 40,
|
||||
"23": 32
|
||||
},
|
||||
"reversed": {
|
||||
"19": 32,
|
||||
"15": 40,
|
||||
"23": 48
|
||||
},
|
||||
"uniform": {
|
||||
"15": 40,
|
||||
"19": 40,
|
||||
"23": 40
|
||||
}
|
||||
},
|
||||
"rank_order_after_omitting_one_pair": {
|
||||
"19,15,23": 7,
|
||||
"15,19,23": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
024720e9eae7556e4d5ca2ca1d71dd544815c79ed2c51b113564d5a6fb4ad004 crossqkv/lisa_combination_screen.py
|
||||
663d4dad556f08b69521543e73d67362d46dc694c747e72b6cb786da7484e090 crossqkv/lisa_rank_compare.py
|
||||
f212bd1b17b38d995060fc04b20a77b4e572cffc9b3776dc16ef7cf012ee89a3 crossqkv/lisa_trajectory_train.py
|
||||
e03e7edf719026ffd99bfc99a539ee22c71884baa5cdaf629d8f4e44e1565c41 crossqkv/lisa_combination_eval.py
|
||||
519e0a031efcfb69c9b86fca1cb649fe8bb93d799401c8023ff7b6549cded448 crossqkv/lisa_full_answer.py
|
||||
1a1a4cbc8e3c5b97accfe2d0ba18a21c9e2ebfa25d66561d7ef9c59668049efa crossqkv/lisa_full_answer_train.py
|
||||
57e73f1e30c8db8daec7b13d6455af2822b2db3e600531f8a60e2381d093ad91 crossqkv/lisa_full_answer_verify.py
|
||||
98927a1ccd935b2f7a438bad31bbd973e210a54deceac911c61551092e52c96c crossqkv/lisa_generate.py
|
||||
d47b4c9cc34082e9b356e745821298a43981e4cd18ed55a3f59b4b6fe7cc46e3 crossqkv/lisa_tail.py
|
||||
9f0b6a53f107950661e91c16f03b49440708b3936120e2f84ef1d66f185257b6 crossqkv/lisa_train.py
|
||||
94437e0138c54ec34b1beaaa0e08a334ce0822f60af598a5a896459b778a3a1c functional/model.py
|
||||
e5953ed7e4cc58c49290bf768c173828ce1c29f36795f5c657ed0f1d76f0a371 tests/test_lisa_combinations.py
|
||||
e1d70b10863dab1e13dfa9573c0d87fc6ca017039c3cf9b90f7628f3e7fe5664 crossqkv/lisa_effect_answer_audit.py
|
||||
@@ -0,0 +1,679 @@
|
||||
{
|
||||
"source_receipt_sha256": "682bc035a5bed9f9245f589cacf3e9616300e8bf5e85d3743b1264a56360fa55",
|
||||
"split": "fit",
|
||||
"sites": [
|
||||
15,
|
||||
19,
|
||||
23
|
||||
],
|
||||
"native_donor_layers": [
|
||||
11,
|
||||
15,
|
||||
19
|
||||
],
|
||||
"donor_fit": "affine, opposite index parity",
|
||||
"metric": "mean per-example, per-layer, per-head, all token-pair squared raw score residual",
|
||||
"mean_mse": {
|
||||
"15": {
|
||||
"0": 3.0491509033035786,
|
||||
"32": 0.039521781594895264,
|
||||
"40": 0.020783290371489457,
|
||||
"48": 0.010840281262399451
|
||||
},
|
||||
"19": {
|
||||
"0": 2.512677766820607,
|
||||
"32": 0.028017079240270398,
|
||||
"40": 0.014575690475241961,
|
||||
"48": 0.0075188286924900765
|
||||
},
|
||||
"23": {
|
||||
"0": 2.32949672919509,
|
||||
"32": 0.028727581321570477,
|
||||
"40": 0.015100597622509863,
|
||||
"48": 0.007748733860780121
|
||||
}
|
||||
},
|
||||
"configurations": [
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
40,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.016819859489747093,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
32,
|
||||
40,
|
||||
48
|
||||
],
|
||||
"mean_mse": 0.02061540197697245,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
32,
|
||||
48,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.020713735969965067,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
32,
|
||||
48
|
||||
],
|
||||
"mean_mse": 0.018849701157513325,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
48,
|
||||
32
|
||||
],
|
||||
"mean_mse": 0.019009900128516666,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
48,
|
||||
32,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.017985986041726573,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
48,
|
||||
40,
|
||||
32
|
||||
],
|
||||
"mean_mse": 0.018047851019737295,
|
||||
"examples_below_uniform_mse": 0
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"id": "fit-lookup-000",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.088659967440397,
|
||||
"32": 0.04236259250553502,
|
||||
"40": 0.022141397788788392,
|
||||
"48": 0.011514037850336353
|
||||
},
|
||||
"19": {
|
||||
"0": 2.60677435406026,
|
||||
"32": 0.030297211627820866,
|
||||
"40": 0.01598283395379536,
|
||||
"48": 0.008219940043388664
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3563735679615907,
|
||||
"32": 0.02892025119959655,
|
||||
"40": 0.015145857942858488,
|
||||
"48": 0.007854447730351124
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-001",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0437552842711924,
|
||||
"32": 0.041460379107627,
|
||||
"40": 0.02197332831278948,
|
||||
"48": 0.01154738790723923
|
||||
},
|
||||
"19": {
|
||||
"0": 2.6002811453342303,
|
||||
"32": 0.029788866923491097,
|
||||
"40": 0.015212847384373162,
|
||||
"48": 0.007800509698369113
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3453950294400725,
|
||||
"32": 0.028961945449738232,
|
||||
"40": 0.015314327377369019,
|
||||
"48": 0.007819546227552078
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-002",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1611634458593403,
|
||||
"32": 0.039321211199099995,
|
||||
"40": 0.020199787980594405,
|
||||
"48": 0.010459417590053765
|
||||
},
|
||||
"19": {
|
||||
"0": 2.4157809408598623,
|
||||
"32": 0.02655148904575669,
|
||||
"40": 0.013735592399044141,
|
||||
"48": 0.007057144763423892
|
||||
},
|
||||
"23": {
|
||||
"0": 2.325402166282838,
|
||||
"32": 0.027055553748214518,
|
||||
"40": 0.013891678650954479,
|
||||
"48": 0.006962328419010828
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-003",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.040995331406837,
|
||||
"32": 0.03762918598377188,
|
||||
"40": 0.01984353470077239,
|
||||
"48": 0.010574553412406797
|
||||
},
|
||||
"19": {
|
||||
"0": 2.3597098591507217,
|
||||
"32": 0.02773534955136491,
|
||||
"40": 0.014466135600102365,
|
||||
"48": 0.0074571195122997225
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3234745384230875,
|
||||
"32": 0.029123405193316097,
|
||||
"40": 0.015470646972640318,
|
||||
"48": 0.008016444188761525
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-004",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0215199092782723,
|
||||
"32": 0.040987579290442236,
|
||||
"40": 0.02187090698894471,
|
||||
"48": 0.011580689428509917
|
||||
},
|
||||
"19": {
|
||||
"0": 2.573071094425272,
|
||||
"32": 0.02882784504735971,
|
||||
"40": 0.015108305637581228,
|
||||
"48": 0.007925058462351522
|
||||
},
|
||||
"23": {
|
||||
"0": 2.340310773344382,
|
||||
"32": 0.028890642640557497,
|
||||
"40": 0.015253046125958373,
|
||||
"48": 0.007854863994071565
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-005",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0330234103086564,
|
||||
"32": 0.040488127570967286,
|
||||
"40": 0.021191326763191246,
|
||||
"48": 0.011073238036764401
|
||||
},
|
||||
"19": {
|
||||
"0": 2.454760989612247,
|
||||
"32": 0.02946771758936749,
|
||||
"40": 0.01545794859144716,
|
||||
"48": 0.00802543841461683
|
||||
},
|
||||
"23": {
|
||||
"0": 2.2967207477889273,
|
||||
"32": 0.029778415586498647,
|
||||
"40": 0.01600304961677946,
|
||||
"48": 0.0083111870016772
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-006",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.013331118405758,
|
||||
"32": 0.04131749410468123,
|
||||
"40": 0.022042406028810038,
|
||||
"48": 0.011636497469555758
|
||||
},
|
||||
"19": {
|
||||
"0": 2.528745937676687,
|
||||
"32": 0.02826800264634013,
|
||||
"40": 0.014733505683104612,
|
||||
"48": 0.0076718514475501865
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3072629450831816,
|
||||
"32": 0.0289161816884407,
|
||||
"40": 0.015426171607648538,
|
||||
"48": 0.008021220293678933
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-007",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 2.9797496554592016,
|
||||
"32": 0.04008678098041669,
|
||||
"40": 0.021471205229520018,
|
||||
"48": 0.011298897793875518
|
||||
},
|
||||
"19": {
|
||||
"0": 2.524372130523825,
|
||||
"32": 0.02903602273670119,
|
||||
"40": 0.015166059667194653,
|
||||
"48": 0.007834174908611297
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3610797089906277,
|
||||
"32": 0.029450602936166363,
|
||||
"40": 0.015499606337721955,
|
||||
"48": 0.00805269819015974
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-008",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.019527986904939,
|
||||
"32": 0.040274185385297874,
|
||||
"40": 0.021116286802696557,
|
||||
"48": 0.010885256441784055
|
||||
},
|
||||
"19": {
|
||||
"0": 2.523656269236793,
|
||||
"32": 0.02772895841962885,
|
||||
"40": 0.014412311378240944,
|
||||
"48": 0.007384325810057883
|
||||
},
|
||||
"23": {
|
||||
"0": 2.320639636723277,
|
||||
"32": 0.027954408126430304,
|
||||
"40": 0.014598363754756497,
|
||||
"48": 0.007555480787878869
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-009",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1093965867603957,
|
||||
"32": 0.03755905434822006,
|
||||
"40": 0.019840372604972834,
|
||||
"48": 0.010344465475210821
|
||||
},
|
||||
"19": {
|
||||
"0": 2.505387553072129,
|
||||
"32": 0.027001747506091436,
|
||||
"40": 0.013899598887412037,
|
||||
"48": 0.007008295926413987
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3448651884655374,
|
||||
"32": 0.029100983555730472,
|
||||
"40": 0.015379827992887235,
|
||||
"48": 0.007858481884474376
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-010",
|
||||
"length": 107,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0311224516019064,
|
||||
"32": 0.04091108401342763,
|
||||
"40": 0.02180213747578483,
|
||||
"48": 0.011590187257245059
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5713354258542362,
|
||||
"32": 0.029039653431551533,
|
||||
"40": 0.01531556329140523,
|
||||
"48": 0.007899517545272823
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3511743607212607,
|
||||
"32": 0.03012251758846437,
|
||||
"40": 0.016076320232085935,
|
||||
"48": 0.008327212573692013
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-011",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 2.978140786774899,
|
||||
"32": 0.03878118161674924,
|
||||
"40": 0.020375268025433116,
|
||||
"48": 0.01067361843154627
|
||||
},
|
||||
"19": {
|
||||
"0": 2.545974192767094,
|
||||
"32": 0.02905582052089718,
|
||||
"40": 0.01503920798962135,
|
||||
"48": 0.007825902631264234
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3154443153866144,
|
||||
"32": 0.029736139916476785,
|
||||
"40": 0.015719287229754325,
|
||||
"48": 0.00816518344542446
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-012",
|
||||
"length": 107,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0087156260860324,
|
||||
"32": 0.039908258905094224,
|
||||
"40": 0.020951748129681164,
|
||||
"48": 0.0109459493750372
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5004236680399994,
|
||||
"32": 0.027530296227075,
|
||||
"40": 0.014297426111298323,
|
||||
"48": 0.0073502099933688055
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3037441781455907,
|
||||
"32": 0.028300959976612527,
|
||||
"40": 0.014905029499610128,
|
||||
"48": 0.0076801742973075585
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-013",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.090885110032237,
|
||||
"32": 0.037628764689048785,
|
||||
"40": 0.01983888726146963,
|
||||
"48": 0.010323019538322292
|
||||
},
|
||||
"19": {
|
||||
"0": 2.4559173768588263,
|
||||
"32": 0.027772754396836425,
|
||||
"40": 0.014524390215698612,
|
||||
"48": 0.007483559779230743
|
||||
},
|
||||
"23": {
|
||||
"0": 2.287404497389505,
|
||||
"32": 0.02819735934494258,
|
||||
"40": 0.014912927963379,
|
||||
"48": 0.007726565200995596
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-014",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.13819959885641,
|
||||
"32": 0.039420418861715725,
|
||||
"40": 0.020868132899275662,
|
||||
"48": 0.010854347550869874
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5679901885805516,
|
||||
"32": 0.028098421308328406,
|
||||
"40": 0.014312423513410482,
|
||||
"48": 0.00732004539511427
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3466282966243877,
|
||||
"32": 0.02880736726984329,
|
||||
"40": 0.014808088738714507,
|
||||
"48": 0.00750811978348572
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-015",
|
||||
"length": 104,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0692672104629573,
|
||||
"32": 0.037746196997427546,
|
||||
"40": 0.019899233229636805,
|
||||
"48": 0.01029592139206912
|
||||
},
|
||||
"19": {
|
||||
"0": 2.4838282610330245,
|
||||
"32": 0.026826048708958952,
|
||||
"40": 0.013808543684409204,
|
||||
"48": 0.006989747600969923
|
||||
},
|
||||
"23": {
|
||||
"0": 2.322057578321556,
|
||||
"32": 0.02797636928934322,
|
||||
"40": 0.014399908661816594,
|
||||
"48": 0.007212087854706693
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-016",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0007538969450036,
|
||||
"32": 0.03916077842933745,
|
||||
"40": 0.020493545446600054,
|
||||
"48": 0.010682154227783146
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5872858743785674,
|
||||
"32": 0.028776526081457792,
|
||||
"40": 0.015233754140328008,
|
||||
"48": 0.007916572897216386
|
||||
},
|
||||
"23": {
|
||||
"0": 2.347073684588352,
|
||||
"32": 0.029756068268149995,
|
||||
"40": 0.015805893856473047,
|
||||
"48": 0.00809506288386048
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-017",
|
||||
"length": 104,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.097493153149071,
|
||||
"32": 0.03850921447926972,
|
||||
"40": 0.019769321682123874,
|
||||
"48": 0.010122230466840895
|
||||
},
|
||||
"19": {
|
||||
"0": 2.4503922223577725,
|
||||
"32": 0.025405658587984905,
|
||||
"40": 0.013039908579401138,
|
||||
"48": 0.006659946143533161
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3199401227863863,
|
||||
"32": 0.02735269039309821,
|
||||
"40": 0.014341351722532756,
|
||||
"48": 0.007256346435349317
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-018",
|
||||
"length": 108,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0013828310609036,
|
||||
"32": 0.03971017933680606,
|
||||
"40": 0.02104882562580656,
|
||||
"48": 0.011115656621268687
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5217980667349007,
|
||||
"32": 0.030615218969447338,
|
||||
"40": 0.01612161718714934,
|
||||
"48": 0.008545605297330143
|
||||
},
|
||||
"23": {
|
||||
"0": 2.326397701784687,
|
||||
"32": 0.03073856758564035,
|
||||
"40": 0.016339969467014808,
|
||||
"48": 0.008568277707684677
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-019",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0112006462653227,
|
||||
"32": 0.03764011794064314,
|
||||
"40": 0.019441597324216794,
|
||||
"48": 0.009988085038926689
|
||||
},
|
||||
"19": {
|
||||
"0": 2.543471885532161,
|
||||
"32": 0.02619589976045457,
|
||||
"40": 0.013660075369000754,
|
||||
"48": 0.007015486171297309
|
||||
},
|
||||
"23": {
|
||||
"0": 2.3365870614142663,
|
||||
"32": 0.027970465568334695,
|
||||
"40": 0.014406812634280746,
|
||||
"48": 0.007354861080531025
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-020",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0499784330668795,
|
||||
"32": 0.04122577355978497,
|
||||
"40": 0.021592165464748382,
|
||||
"48": 0.011222263753869933
|
||||
},
|
||||
"19": {
|
||||
"0": 2.4914495907758174,
|
||||
"32": 0.028387678466645947,
|
||||
"40": 0.014732006285955,
|
||||
"48": 0.007600996890895566
|
||||
},
|
||||
"23": {
|
||||
"0": 2.333302869555968,
|
||||
"32": 0.028901195362459362,
|
||||
"40": 0.015146381684210501,
|
||||
"48": 0.007708436189913433
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-021",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.000190717302482,
|
||||
"32": 0.036974093576619696,
|
||||
"40": 0.019188918824031505,
|
||||
"48": 0.009750811653384532
|
||||
},
|
||||
"19": {
|
||||
"0": 2.504255342893704,
|
||||
"32": 0.02679008610350141,
|
||||
"40": 0.013656397393850609,
|
||||
"48": 0.007080721321304438
|
||||
},
|
||||
"23": {
|
||||
"0": 2.343114821525361,
|
||||
"32": 0.027011591312553825,
|
||||
"40": 0.014172719903089378,
|
||||
"48": 0.007187917055432581
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-022",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1429597973216787,
|
||||
"32": 0.03808212093085827,
|
||||
"40": 0.019726271041694738,
|
||||
"48": 0.010127914275230446
|
||||
},
|
||||
"19": {
|
||||
"0": 2.5344581089967053,
|
||||
"32": 0.02599389167658157,
|
||||
"40": 0.013376992897619809,
|
||||
"48": 0.006852960444486019
|
||||
},
|
||||
"23": {
|
||||
"0": 2.291104635624609,
|
||||
"32": 0.02783449426763895,
|
||||
"40": 0.01437474325606307,
|
||||
"48": 0.007167743463725208
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-023",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.048208724265116,
|
||||
"32": 0.04133798446464467,
|
||||
"40": 0.022112363284163734,
|
||||
"48": 0.011560149309456123
|
||||
},
|
||||
"19": {
|
||||
"0": 2.453145924939178,
|
||||
"32": 0.027218736432846176,
|
||||
"40": 0.01452312556436353,
|
||||
"48": 0.007526757521394901
|
||||
},
|
||||
"23": {
|
||||
"0": 2.362423074310092,
|
||||
"32": 0.028603775449443824,
|
||||
"40": 0.015022331711637587,
|
||||
"48": 0.007704925968997894
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,675 @@
|
||||
{
|
||||
"source_receipt_sha256": "682bc035a5bed9f9245f589cacf3e9616300e8bf5e85d3743b1264a56360fa55",
|
||||
"split": "fit",
|
||||
"sites": [
|
||||
15,
|
||||
19,
|
||||
23
|
||||
],
|
||||
"donor_layer": 11,
|
||||
"donor_fit": "affine, opposite index parity",
|
||||
"metric": "mean per-example, per-layer, per-head, all token-pair squared raw score residual",
|
||||
"mean_mse": {
|
||||
"15": {
|
||||
"0": 3.0491509033035786,
|
||||
"32": 0.0395217815948953,
|
||||
"40": 0.020783290371489474,
|
||||
"48": 0.010840281262399469
|
||||
},
|
||||
"19": {
|
||||
"0": 3.857443153106972,
|
||||
"32": 0.04404012339850357,
|
||||
"40": 0.022555703253053838,
|
||||
"48": 0.011519385659275065
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0209357835593145,
|
||||
"32": 0.04279017456139522,
|
||||
"40": 0.022611030031209806,
|
||||
"48": 0.01179076608337388
|
||||
}
|
||||
},
|
||||
"configurations": [
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
40,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.021983341218584373,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
32,
|
||||
40,
|
||||
48
|
||||
],
|
||||
"mean_mse": 0.024622750310441005,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
32,
|
||||
48,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.024550732428460054,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
32,
|
||||
48
|
||||
],
|
||||
"mean_mse": 0.025538059951122308,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
40,
|
||||
48,
|
||||
32
|
||||
],
|
||||
"mean_mse": 0.02503095019738659,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
48,
|
||||
32,
|
||||
40
|
||||
],
|
||||
"mean_mse": 0.02583047823070428,
|
||||
"examples_below_uniform_mse": 0
|
||||
},
|
||||
{
|
||||
"ranks": [
|
||||
48,
|
||||
40,
|
||||
32
|
||||
],
|
||||
"mean_mse": 0.02539538635894951,
|
||||
"examples_below_uniform_mse": 0
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"id": "fit-lookup-000",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.088659967440397,
|
||||
"32": 0.042362592505534986,
|
||||
"40": 0.022141397788788385,
|
||||
"48": 0.011514037850336351
|
||||
},
|
||||
"19": {
|
||||
"0": 3.9943518537218665,
|
||||
"32": 0.04591974433321144,
|
||||
"40": 0.024057801139955103,
|
||||
"48": 0.012400994145531046
|
||||
},
|
||||
"23": {
|
||||
"0": 3.043062165797575,
|
||||
"32": 0.043840611411928194,
|
||||
"40": 0.023782948692401322,
|
||||
"48": 0.012654655382485485
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-001",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.043755284271191,
|
||||
"32": 0.04146037910762712,
|
||||
"40": 0.021973328312789527,
|
||||
"48": 0.011547387907239248
|
||||
},
|
||||
"19": {
|
||||
"0": 3.9598790566955886,
|
||||
"32": 0.045888230039258966,
|
||||
"40": 0.023175579379109502,
|
||||
"48": 0.011920069339334243
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0228768421518657,
|
||||
"32": 0.04389074185450007,
|
||||
"40": 0.02298613226861967,
|
||||
"48": 0.01201903802540863
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-002",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1611634458593403,
|
||||
"32": 0.039321211199099954,
|
||||
"40": 0.020199787980594377,
|
||||
"48": 0.010459417590053765
|
||||
},
|
||||
"19": {
|
||||
"0": 3.7504174288845213,
|
||||
"32": 0.04261753426778668,
|
||||
"40": 0.021543287068594312,
|
||||
"48": 0.010728145288211992
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0404045066898244,
|
||||
"32": 0.04148977907847477,
|
||||
"40": 0.021596132424008038,
|
||||
"48": 0.01100976489064943
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-003",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0409953314068368,
|
||||
"32": 0.03762918598377197,
|
||||
"40": 0.019843534700772446,
|
||||
"48": 0.010574553412406835
|
||||
},
|
||||
"19": {
|
||||
"0": 3.688879228913018,
|
||||
"32": 0.04392129860493001,
|
||||
"40": 0.022968772572630233,
|
||||
"48": 0.011682937781274223
|
||||
},
|
||||
"23": {
|
||||
"0": 2.9696612315728035,
|
||||
"32": 0.04365312259554772,
|
||||
"40": 0.023110205181705423,
|
||||
"48": 0.012251188178660657
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-004",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.021519909278273,
|
||||
"32": 0.040987579290442194,
|
||||
"40": 0.0218709069889447,
|
||||
"48": 0.011580689428509915
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8603281075397944,
|
||||
"32": 0.043717190016046695,
|
||||
"40": 0.022459706664211883,
|
||||
"48": 0.011489303457101622
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0533279734811867,
|
||||
"32": 0.0429414877038192,
|
||||
"40": 0.022566893434764704,
|
||||
"48": 0.011829068992343534
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-005",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.033023410308657,
|
||||
"32": 0.04048812757096736,
|
||||
"40": 0.021191326763191305,
|
||||
"48": 0.011073238036764433
|
||||
},
|
||||
"19": {
|
||||
"0": 3.7947891522935953,
|
||||
"32": 0.046712646076783715,
|
||||
"40": 0.02369760775856494,
|
||||
"48": 0.012093032569584385
|
||||
},
|
||||
"23": {
|
||||
"0": 2.9266299087225995,
|
||||
"32": 0.04418105299845767,
|
||||
"40": 0.023223134094120208,
|
||||
"48": 0.012197499278392794
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-006",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.013331118405758,
|
||||
"32": 0.04131749410468121,
|
||||
"40": 0.022042406028810024,
|
||||
"48": 0.011636497469555753
|
||||
},
|
||||
"19": {
|
||||
"0": 3.823321135345336,
|
||||
"32": 0.043444020469542224,
|
||||
"40": 0.023039572744899546,
|
||||
"48": 0.012151077808294013
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0123366474248527,
|
||||
"32": 0.043892186138404905,
|
||||
"40": 0.023768489833834446,
|
||||
"48": 0.012493576292187758
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-007",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 2.9797496554592016,
|
||||
"32": 0.040086780980416785,
|
||||
"40": 0.021471205229520056,
|
||||
"48": 0.011298897793875544
|
||||
},
|
||||
"19": {
|
||||
"0": 3.826629680630135,
|
||||
"32": 0.046253373518954505,
|
||||
"40": 0.02394178399044027,
|
||||
"48": 0.012263827559098354
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0080892417871485,
|
||||
"32": 0.04416354613658148,
|
||||
"40": 0.02347209773759818,
|
||||
"48": 0.01214014313596462
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-008",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0195279869049405,
|
||||
"32": 0.04027418538529785,
|
||||
"40": 0.021116286802696546,
|
||||
"48": 0.010885256441784051
|
||||
},
|
||||
"19": {
|
||||
"0": 3.9049296662519,
|
||||
"32": 0.044775724860484895,
|
||||
"40": 0.023020902804934695,
|
||||
"48": 0.01181115860807368
|
||||
},
|
||||
"23": {
|
||||
"0": 3.022332594278084,
|
||||
"32": 0.04271748172881601,
|
||||
"40": 0.022841955815524173,
|
||||
"48": 0.011960985252592796
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-009",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.109396586760397,
|
||||
"32": 0.03755905434822013,
|
||||
"40": 0.019840372604972886,
|
||||
"48": 0.010344465475210856
|
||||
},
|
||||
"19": {
|
||||
"0": 3.889074040521854,
|
||||
"32": 0.042862804080481424,
|
||||
"40": 0.021958251337402295,
|
||||
"48": 0.011303882000132073
|
||||
},
|
||||
"23": {
|
||||
"0": 3.036374564918723,
|
||||
"32": 0.042727702436651936,
|
||||
"40": 0.022601026341831074,
|
||||
"48": 0.011770845282018036
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-010",
|
||||
"length": 107,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0311224516019055,
|
||||
"32": 0.04091108401342758,
|
||||
"40": 0.0218021374757848,
|
||||
"48": 0.01159018725724504
|
||||
},
|
||||
"19": {
|
||||
"0": 3.9363469267180835,
|
||||
"32": 0.04567514334168894,
|
||||
"40": 0.02376781635912793,
|
||||
"48": 0.012322024685530862
|
||||
},
|
||||
"23": {
|
||||
"0": 3.014115868352978,
|
||||
"32": 0.044461534712689404,
|
||||
"40": 0.023592730803344734,
|
||||
"48": 0.012495188587781836
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-011",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 2.978140786774898,
|
||||
"32": 0.0387811816167493,
|
||||
"40": 0.02037526802543315,
|
||||
"48": 0.0106736184315463
|
||||
},
|
||||
"19": {
|
||||
"0": 3.844477663585858,
|
||||
"32": 0.045556113791662724,
|
||||
"40": 0.023331656132232113,
|
||||
"48": 0.011906942552667195
|
||||
},
|
||||
"23": {
|
||||
"0": 2.9601191176649757,
|
||||
"32": 0.043240836434076536,
|
||||
"40": 0.02260293695313534,
|
||||
"48": 0.0119007769151467
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-012",
|
||||
"length": 107,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0087156260860324,
|
||||
"32": 0.039908258905094175,
|
||||
"40": 0.02095174812968115,
|
||||
"48": 0.010945949375037204
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8500214677028963,
|
||||
"32": 0.04244640193219456,
|
||||
"40": 0.021656130249074597,
|
||||
"48": 0.011118828008838963
|
||||
},
|
||||
"23": {
|
||||
"0": 3.012859888829719,
|
||||
"32": 0.04171247094948818,
|
||||
"40": 0.0222639528061427,
|
||||
"48": 0.011602191423433644
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-013",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.090885110032237,
|
||||
"32": 0.03762876468904888,
|
||||
"40": 0.019838887261469686,
|
||||
"48": 0.010323019538322325
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8526016885782073,
|
||||
"32": 0.04267441235679496,
|
||||
"40": 0.021965440593552564,
|
||||
"48": 0.011204493115001445
|
||||
},
|
||||
"23": {
|
||||
"0": 2.9829829723700807,
|
||||
"32": 0.04183375644979849,
|
||||
"40": 0.022193649610459963,
|
||||
"48": 0.0116555170847707
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-014",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1381995988564113,
|
||||
"32": 0.0394204188617157,
|
||||
"40": 0.02086813289927566,
|
||||
"48": 0.010854347550869876
|
||||
},
|
||||
"19": {
|
||||
"0": 3.96491581298912,
|
||||
"32": 0.044485907588952385,
|
||||
"40": 0.022877678884423304,
|
||||
"48": 0.01175281372917842
|
||||
},
|
||||
"23": {
|
||||
"0": 3.056772542795872,
|
||||
"32": 0.04255880849165352,
|
||||
"40": 0.022612492155258415,
|
||||
"48": 0.011914870920016675
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-015",
|
||||
"length": 104,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.069267210462956,
|
||||
"32": 0.037746196997427636,
|
||||
"40": 0.01989923322963685,
|
||||
"48": 0.01029592139206914
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8705993446575504,
|
||||
"32": 0.042685739359091625,
|
||||
"40": 0.021382466243261136,
|
||||
"48": 0.01075929182481224
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0856817422797613,
|
||||
"32": 0.041619385601778976,
|
||||
"40": 0.021868313984371644,
|
||||
"48": 0.0112163979206816
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-016",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0007538969450036,
|
||||
"32": 0.03916077842933743,
|
||||
"40": 0.02049354544660005,
|
||||
"48": 0.010682154227783142
|
||||
},
|
||||
"19": {
|
||||
"0": 3.870593473010357,
|
||||
"32": 0.04499375247587852,
|
||||
"40": 0.023060264604825936,
|
||||
"48": 0.011894306441044961
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0078244299495527,
|
||||
"32": 0.04343119038793748,
|
||||
"40": 0.02305271005274073,
|
||||
"48": 0.012061257691392924
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-017",
|
||||
"length": 104,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.097493153149072,
|
||||
"32": 0.03850921447926982,
|
||||
"40": 0.019769321682123944,
|
||||
"48": 0.010122230466840933
|
||||
},
|
||||
"19": {
|
||||
"0": 3.820263396381217,
|
||||
"32": 0.04169650174393219,
|
||||
"40": 0.020890787003452566,
|
||||
"48": 0.010491055604303079
|
||||
},
|
||||
"23": {
|
||||
"0": 3.055860371881066,
|
||||
"32": 0.04156449816886682,
|
||||
"40": 0.02182786872676137,
|
||||
"48": 0.011057894501810384
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-018",
|
||||
"length": 108,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0013828310609028,
|
||||
"32": 0.03971017933680604,
|
||||
"40": 0.021048825625806546,
|
||||
"48": 0.011115656621268686
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8060033369100768,
|
||||
"32": 0.04542715302568046,
|
||||
"40": 0.023526612657494325,
|
||||
"48": 0.012077680832697587
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0269971279675176,
|
||||
"32": 0.04410912108278284,
|
||||
"40": 0.023608312332425496,
|
||||
"48": 0.012556557224355341
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-019",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0112006462653227,
|
||||
"32": 0.037640117940643265,
|
||||
"40": 0.019441597324216846,
|
||||
"48": 0.009988085038926717
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8768517398640947,
|
||||
"32": 0.04158191015113058,
|
||||
"40": 0.020643499621951257,
|
||||
"48": 0.01039837221786275
|
||||
},
|
||||
"23": {
|
||||
"0": 3.065298751963704,
|
||||
"32": 0.040825522024696886,
|
||||
"40": 0.021289032661542927,
|
||||
"48": 0.010876842781099974
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-020",
|
||||
"length": 106,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0499784330668804,
|
||||
"32": 0.04122577355978493,
|
||||
"40": 0.021592165464748375,
|
||||
"48": 0.011222263753869931
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8824985292132834,
|
||||
"32": 0.04492968673719023,
|
||||
"40": 0.022922977828289975,
|
||||
"48": 0.011503317232916728
|
||||
},
|
||||
"23": {
|
||||
"0": 3.033711254655971,
|
||||
"32": 0.043830061367554726,
|
||||
"40": 0.02317944512208468,
|
||||
"48": 0.012154593458581674
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-021",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.0001907173024827,
|
||||
"32": 0.03697409357661978,
|
||||
"40": 0.019188918824031547,
|
||||
"48": 0.009750811653384558
|
||||
},
|
||||
"19": {
|
||||
"0": 3.766616992263308,
|
||||
"32": 0.042624045486801626,
|
||||
"40": 0.02124433468816115,
|
||||
"48": 0.010587855522900326
|
||||
},
|
||||
"23": {
|
||||
"0": 2.9766873470897104,
|
||||
"32": 0.041481534529769944,
|
||||
"40": 0.02121486238795562,
|
||||
"48": 0.010788750140809036
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-022",
|
||||
"length": 103,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.1429597973216787,
|
||||
"32": 0.03808212093085823,
|
||||
"40": 0.019726271041694728,
|
||||
"48": 0.010127914275230436
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8598970499663743,
|
||||
"32": 0.04248202181605006,
|
||||
"40": 0.0214628237211103,
|
||||
"48": 0.010853348943230156
|
||||
},
|
||||
"23": {
|
||||
"0": 3.049645123879466,
|
||||
"32": 0.039979464021990575,
|
||||
"40": 0.02080617789667549,
|
||||
"48": 0.010634926145447776
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-023",
|
||||
"length": 105,
|
||||
"mse": {
|
||||
"15": {
|
||||
"0": 3.048208724265116,
|
||||
"32": 0.041337984464644754,
|
||||
"40": 0.022112363284163796,
|
||||
"48": 0.011560149309456157
|
||||
},
|
||||
"19": {
|
||||
"0": 3.8843489019292843,
|
||||
"32": 0.043591605489556345,
|
||||
"40": 0.02274112402559217,
|
||||
"48": 0.011750496554981203
|
||||
},
|
||||
"23": {
|
||||
"0": 3.0388065889185087,
|
||||
"32": 0.04281829316721918,
|
||||
"40": 0.022603219431728962,
|
||||
"48": 0.01173585649494112
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"revision": "15852e8c16360a2fea060d615a32b45270f8a8fc",
|
||||
"inputs": {
|
||||
"manifest.json": "28efbaf94a5034333339a35f08ead151459a7d20c6c2d2f07a451e7f3bf154de",
|
||||
"model_config.json": "ed1c1723241f23f7f4e23430759cbd7dcfb4103cbdfe052bfe7626b57c2615b4",
|
||||
"tokenizer.json": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42"
|
||||
},
|
||||
"shards": [
|
||||
{
|
||||
"name": "model.safetensors-00001-of-00001.safetensors",
|
||||
"bytes": 4548221488,
|
||||
"sha256": "aa33250c4fc64891ddfaba3a314fd9542ea371843c387178b425fbcc5ed680b1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,602 @@
|
||||
{
|
||||
"splits": {
|
||||
"diagnostic": [
|
||||
{
|
||||
"id": "diagnostic-000-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=39, nettle=36, umber=91, quartz=28, larch=76, fern=47, heath=48, iris=82, reed=75, kelp=89, thyme=34, maple=94.\nWhat is the recorded number for larch?",
|
||||
"answer": 76
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-000-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=39, nettle=36, umber=91, quartz=28, larch=75, fern=47, heath=48, iris=82, reed=76, kelp=89, thyme=34, maple=94.\nWhat is the recorded number for larch?",
|
||||
"answer": 75
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: maple=44, iris=23, fern=88, kelp=77, thyme=73, elm=29, birch=84, umber=76, amber=63, reed=72, quartz=27, yew=39.\nWhat is the recorded number for yew?",
|
||||
"answer": 39
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-001-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: maple=44, iris=23, fern=88, kelp=77, thyme=73, elm=29, birch=84, umber=39, amber=63, reed=72, quartz=27, yew=76.\nWhat is the recorded number for yew?",
|
||||
"answer": 76
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=25, cedar=56, fern=69, jade=66, nettle=53, yew=78, kelp=67, quartz=31, elm=22, dune=52, amber=84, umber=49.\nWhat is the recorded number for umber?",
|
||||
"answer": 49
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-002-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=25, cedar=56, fern=69, jade=66, nettle=53, yew=78, kelp=67, quartz=31, elm=49, dune=52, amber=84, umber=22.\nWhat is the recorded number for umber?",
|
||||
"answer": 22
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=73, elm=86, thyme=44, vine=87, dune=75, slate=80, maple=84, larch=90, olive=70, yew=99, reed=63, quartz=21.\nWhat is the recorded number for reed?",
|
||||
"answer": 63
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-003-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=73, elm=86, thyme=44, vine=87, dune=75, slate=80, maple=84, larch=90, olive=70, yew=99, reed=21, quartz=63.\nWhat is the recorded number for reed?",
|
||||
"answer": 21
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: yew=78, jade=99, maple=84, cedar=88, iris=74, quartz=42, willow=75, dune=89, fern=73, amber=23, reed=29, nettle=47.\nWhat is the recorded number for iris?",
|
||||
"answer": 74
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-004-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: yew=78, jade=99, maple=84, cedar=88, iris=29, quartz=42, willow=75, dune=89, fern=73, amber=23, reed=74, nettle=47.\nWhat is the recorded number for iris?",
|
||||
"answer": 29
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=25, cedar=24, birch=92, nettle=64, slate=56, olive=69, grove=67, elm=98, willow=39, iris=81, reed=77, fern=48.\nWhat is the recorded number for willow?",
|
||||
"answer": 39
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-005-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=25, cedar=24, birch=92, nettle=64, slate=56, olive=69, grove=67, elm=98, willow=77, iris=81, reed=39, fern=48.\nWhat is the recorded number for willow?",
|
||||
"answer": 77
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: quartz=35, kelp=51, reed=36, iris=55, vine=67, yew=70, thyme=83, heath=49, nettle=96, cedar=40, amber=31, dune=27.\nWhat is the recorded number for cedar?",
|
||||
"answer": 40
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-006-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: quartz=35, kelp=51, reed=36, iris=55, vine=40, yew=70, thyme=83, heath=49, nettle=96, cedar=67, amber=31, dune=27.\nWhat is the recorded number for cedar?",
|
||||
"answer": 67
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: umber=48, iris=43, grove=44, maple=73, thyme=89, birch=61, larch=81, amber=93, olive=46, cedar=76, kelp=33, yew=51.\nWhat is the recorded number for thyme?",
|
||||
"answer": 89
|
||||
},
|
||||
{
|
||||
"id": "diagnostic-007-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: umber=48, iris=43, grove=44, maple=73, thyme=61, birch=89, larch=81, amber=93, olive=46, cedar=76, kelp=33, yew=51.\nWhat is the recorded number for thyme?",
|
||||
"answer": 61
|
||||
}
|
||||
],
|
||||
"validation": [
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: kelp=68, dune=98, nettle=92, maple=60, reed=72, birch=74, thyme=91, umber=83, cedar=25, willow=44, grove=79, olive=78.\nWhat is the recorded number for willow?",
|
||||
"answer": 44
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: kelp=68, dune=98, nettle=92, maple=60, reed=72, birch=74, thyme=44, umber=83, cedar=25, willow=91, grove=79, olive=78.\nWhat is the recorded number for willow?",
|
||||
"answer": 91
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=46, kelp=91, cedar=72, reed=97, heath=28, pine=48, willow=20, quartz=69, maple=45, elm=22, thyme=33, fern=47.\nWhat is the recorded number for thyme?",
|
||||
"answer": 33
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=46, kelp=91, cedar=72, reed=97, heath=33, pine=48, willow=20, quartz=69, maple=45, elm=22, thyme=28, fern=47.\nWhat is the recorded number for thyme?",
|
||||
"answer": 28
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=57, fern=72, elm=56, vine=69, dune=42, yew=51, cedar=71, nettle=93, umber=75, maple=43, slate=22, olive=66.\nWhat is the recorded number for dune?",
|
||||
"answer": 42
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=57, fern=72, elm=42, vine=69, dune=56, yew=51, cedar=71, nettle=93, umber=75, maple=43, slate=22, olive=66.\nWhat is the recorded number for dune?",
|
||||
"answer": 56
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: jade=33, quartz=72, slate=34, dune=81, elm=43, willow=95, thyme=83, vine=23, reed=56, fern=48, iris=93, maple=82.\nWhat is the recorded number for iris?",
|
||||
"answer": 93
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: jade=33, quartz=72, slate=34, dune=81, elm=43, willow=95, thyme=93, vine=23, reed=56, fern=48, iris=83, maple=82.\nWhat is the recorded number for iris?",
|
||||
"answer": 83
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=70, vine=25, cedar=72, dune=69, olive=23, iris=81, kelp=89, maple=85, quartz=88, jade=32, slate=91, thyme=29.\nWhat is the recorded number for olive?",
|
||||
"answer": 23
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=70, vine=25, cedar=72, dune=69, olive=89, iris=81, kelp=23, maple=85, quartz=88, jade=32, slate=91, thyme=29.\nWhat is the recorded number for olive?",
|
||||
"answer": 89
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: willow=60, iris=36, grove=22, thyme=82, pine=74, maple=63, vine=44, yew=62, heath=32, amber=49, slate=96, umber=47.\nWhat is the recorded number for maple?",
|
||||
"answer": 63
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: willow=60, iris=36, grove=22, thyme=82, pine=74, maple=49, vine=44, yew=62, heath=32, amber=63, slate=96, umber=47.\nWhat is the recorded number for maple?",
|
||||
"answer": 49
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: pine=32, iris=35, amber=88, heath=48, thyme=77, kelp=78, willow=37, jade=31, grove=97, maple=74, slate=69, umber=29.\nWhat is the recorded number for kelp?",
|
||||
"answer": 78
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: pine=32, iris=35, amber=88, heath=48, thyme=77, kelp=29, willow=37, jade=31, grove=97, maple=74, slate=69, umber=78.\nWhat is the recorded number for kelp?",
|
||||
"answer": 29
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=86, grove=50, iris=83, maple=64, reed=95, olive=46, jade=97, umber=24, amber=53, thyme=33, birch=93, pine=96.\nWhat is the recorded number for maple?",
|
||||
"answer": 64
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=86, grove=64, iris=83, maple=50, reed=95, olive=46, jade=97, umber=24, amber=53, thyme=33, birch=93, pine=96.\nWhat is the recorded number for maple?",
|
||||
"answer": 50
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
{
|
||||
"id": "test-000-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: larch=28, willow=64, thyme=87, dune=51, birch=63, umber=24, olive=72, kelp=97, slate=82, cedar=49, heath=46, nettle=37.\nWhat is the recorded number for nettle?",
|
||||
"answer": 37
|
||||
},
|
||||
{
|
||||
"id": "test-000-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: larch=28, willow=64, thyme=87, dune=51, birch=63, umber=24, olive=72, kelp=97, slate=82, cedar=49, heath=37, nettle=46.\nWhat is the recorded number for nettle?",
|
||||
"answer": 46
|
||||
},
|
||||
{
|
||||
"id": "test-001-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=60, nettle=61, birch=31, cedar=67, umber=88, elm=44, grove=72, amber=78, thyme=48, quartz=33, yew=29, slate=25.\nWhat is the recorded number for cedar?",
|
||||
"answer": 67
|
||||
},
|
||||
{
|
||||
"id": "test-001-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=60, nettle=61, birch=31, cedar=33, umber=88, elm=44, grove=72, amber=78, thyme=48, quartz=67, yew=29, slate=25.\nWhat is the recorded number for cedar?",
|
||||
"answer": 33
|
||||
},
|
||||
{
|
||||
"id": "test-002-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=41, iris=93, heath=36, vine=91, thyme=73, elm=25, reed=83, maple=55, birch=99, grove=35, larch=49, slate=29.\nWhat is the recorded number for grove?",
|
||||
"answer": 35
|
||||
},
|
||||
{
|
||||
"id": "test-002-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=35, iris=93, heath=36, vine=91, thyme=73, elm=25, reed=83, maple=55, birch=99, grove=41, larch=49, slate=29.\nWhat is the recorded number for grove?",
|
||||
"answer": 41
|
||||
},
|
||||
{
|
||||
"id": "test-003-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=59, dune=25, olive=64, nettle=70, grove=89, cedar=76, kelp=54, larch=97, umber=36, amber=71, elm=53, pine=80.\nWhat is the recorded number for umber?",
|
||||
"answer": 36
|
||||
},
|
||||
{
|
||||
"id": "test-003-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=59, dune=25, olive=64, nettle=70, grove=89, cedar=36, kelp=54, larch=97, umber=76, amber=71, elm=53, pine=80.\nWhat is the recorded number for umber?",
|
||||
"answer": 76
|
||||
},
|
||||
{
|
||||
"id": "test-004-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: olive=26, reed=73, yew=37, jade=54, thyme=76, umber=95, cedar=59, slate=52, birch=49, kelp=43, willow=69, pine=63.\nWhat is the recorded number for jade?",
|
||||
"answer": 54
|
||||
},
|
||||
{
|
||||
"id": "test-004-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: olive=26, reed=73, yew=37, jade=52, thyme=76, umber=95, cedar=59, slate=54, birch=49, kelp=43, willow=69, pine=63.\nWhat is the recorded number for jade?",
|
||||
"answer": 52
|
||||
},
|
||||
{
|
||||
"id": "test-005-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=92, amber=21, larch=31, jade=80, birch=52, willow=99, pine=88, cedar=57, kelp=61, slate=33, nettle=67, quartz=69.\nWhat is the recorded number for amber?",
|
||||
"answer": 21
|
||||
},
|
||||
{
|
||||
"id": "test-005-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=92, amber=52, larch=31, jade=80, birch=21, willow=99, pine=88, cedar=57, kelp=61, slate=33, nettle=67, quartz=69.\nWhat is the recorded number for amber?",
|
||||
"answer": 52
|
||||
},
|
||||
{
|
||||
"id": "test-006-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: elm=38, yew=66, iris=28, pine=25, quartz=79, willow=49, maple=75, jade=32, umber=96, cedar=86, grove=61, slate=55.\nWhat is the recorded number for jade?",
|
||||
"answer": 32
|
||||
},
|
||||
{
|
||||
"id": "test-006-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: elm=38, yew=66, iris=28, pine=25, quartz=32, willow=49, maple=75, jade=79, umber=96, cedar=86, grove=61, slate=55.\nWhat is the recorded number for jade?",
|
||||
"answer": 79
|
||||
},
|
||||
{
|
||||
"id": "test-007-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: yew=29, maple=50, kelp=83, jade=76, thyme=53, elm=26, reed=90, iris=23, willow=33, quartz=31, cedar=57, grove=49.\nWhat is the recorded number for thyme?",
|
||||
"answer": 53
|
||||
},
|
||||
{
|
||||
"id": "test-007-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: yew=29, maple=50, kelp=83, jade=76, thyme=33, elm=26, reed=90, iris=23, willow=53, quartz=31, cedar=57, grove=49.\nWhat is the recorded number for thyme?",
|
||||
"answer": 33
|
||||
},
|
||||
{
|
||||
"id": "test-008-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: reed=20, willow=26, maple=62, cedar=52, larch=47, kelp=29, slate=84, grove=49, thyme=37, elm=30, olive=66, nettle=58.\nWhat is the recorded number for cedar?",
|
||||
"answer": 52
|
||||
},
|
||||
{
|
||||
"id": "test-008-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: reed=52, willow=26, maple=62, cedar=20, larch=47, kelp=29, slate=84, grove=49, thyme=37, elm=30, olive=66, nettle=58.\nWhat is the recorded number for cedar?",
|
||||
"answer": 20
|
||||
},
|
||||
{
|
||||
"id": "test-009-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=91, iris=23, jade=93, elm=92, maple=99, amber=66, thyme=74, nettle=59, grove=81, olive=67, yew=68, reed=60.\nWhat is the recorded number for maple?",
|
||||
"answer": 99
|
||||
},
|
||||
{
|
||||
"id": "test-009-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=91, iris=23, jade=93, elm=92, maple=74, amber=66, thyme=99, nettle=59, grove=81, olive=67, yew=68, reed=60.\nWhat is the recorded number for maple?",
|
||||
"answer": 74
|
||||
},
|
||||
{
|
||||
"id": "test-010-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: olive=97, heath=37, amber=20, birch=59, larch=58, reed=35, vine=87, kelp=65, thyme=83, cedar=99, dune=96, willow=27.\nWhat is the recorded number for heath?",
|
||||
"answer": 37
|
||||
},
|
||||
{
|
||||
"id": "test-010-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: olive=97, heath=20, amber=37, birch=59, larch=58, reed=35, vine=87, kelp=65, thyme=83, cedar=99, dune=96, willow=27.\nWhat is the recorded number for heath?",
|
||||
"answer": 20
|
||||
},
|
||||
{
|
||||
"id": "test-011-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: reed=37, iris=78, amber=28, grove=38, olive=61, heath=94, birch=55, kelp=99, pine=91, maple=59, willow=36, vine=22.\nWhat is the recorded number for willow?",
|
||||
"answer": 36
|
||||
},
|
||||
{
|
||||
"id": "test-011-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: reed=37, iris=78, amber=28, grove=38, olive=61, heath=94, birch=55, kelp=99, pine=91, maple=36, willow=59, vine=22.\nWhat is the recorded number for willow?",
|
||||
"answer": 59
|
||||
},
|
||||
{
|
||||
"id": "test-012-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=41, reed=70, jade=98, willow=28, slate=34, birch=69, elm=80, nettle=46, pine=33, amber=86, vine=72, kelp=73.\nWhat is the recorded number for jade?",
|
||||
"answer": 98
|
||||
},
|
||||
{
|
||||
"id": "test-012-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=41, reed=70, jade=46, willow=28, slate=34, birch=69, elm=80, nettle=98, pine=33, amber=86, vine=72, kelp=73.\nWhat is the recorded number for jade?",
|
||||
"answer": 46
|
||||
},
|
||||
{
|
||||
"id": "test-013-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=81, olive=56, willow=24, slate=93, elm=82, heath=59, grove=97, fern=57, thyme=78, yew=52, dune=37, umber=23.\nWhat is the recorded number for fern?",
|
||||
"answer": 57
|
||||
},
|
||||
{
|
||||
"id": "test-013-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: vine=81, olive=56, willow=24, slate=57, elm=82, heath=59, grove=97, fern=93, thyme=78, yew=52, dune=37, umber=23.\nWhat is the recorded number for fern?",
|
||||
"answer": 93
|
||||
},
|
||||
{
|
||||
"id": "test-014-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=89, amber=56, cedar=47, slate=31, elm=34, kelp=38, nettle=50, grove=23, fern=90, willow=61, vine=94, heath=68.\nWhat is the recorded number for elm?",
|
||||
"answer": 34
|
||||
},
|
||||
{
|
||||
"id": "test-014-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: iris=89, amber=56, cedar=47, slate=31, elm=94, kelp=38, nettle=50, grove=23, fern=90, willow=61, vine=34, heath=68.\nWhat is the recorded number for elm?",
|
||||
"answer": 94
|
||||
},
|
||||
{
|
||||
"id": "test-015-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: willow=73, thyme=57, amber=49, quartz=58, olive=81, heath=64, fern=93, nettle=74, iris=61, reed=32, yew=35, vine=26.\nWhat is the recorded number for reed?",
|
||||
"answer": 32
|
||||
},
|
||||
{
|
||||
"id": "test-015-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: willow=73, thyme=32, amber=49, quartz=58, olive=81, heath=64, fern=93, nettle=74, iris=61, reed=57, yew=35, vine=26.\nWhat is the recorded number for reed?",
|
||||
"answer": 57
|
||||
},
|
||||
{
|
||||
"id": "test-016-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: nettle=58, willow=62, olive=93, thyme=38, elm=27, cedar=20, birch=86, heath=73, kelp=53, pine=34, dune=50, fern=88.\nWhat is the recorded number for willow?",
|
||||
"answer": 62
|
||||
},
|
||||
{
|
||||
"id": "test-016-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: nettle=58, willow=20, olive=93, thyme=38, elm=27, cedar=62, birch=86, heath=73, kelp=53, pine=34, dune=50, fern=88.\nWhat is the recorded number for willow?",
|
||||
"answer": 20
|
||||
},
|
||||
{
|
||||
"id": "test-017-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=55, reed=97, heath=36, pine=35, grove=70, fern=37, elm=38, nettle=59, thyme=34, larch=47, vine=30, olive=87.\nWhat is the recorded number for grove?",
|
||||
"answer": 70
|
||||
},
|
||||
{
|
||||
"id": "test-017-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=70, reed=97, heath=36, pine=35, grove=55, fern=37, elm=38, nettle=59, thyme=34, larch=47, vine=30, olive=87.\nWhat is the recorded number for grove?",
|
||||
"answer": 55
|
||||
},
|
||||
{
|
||||
"id": "test-018-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=58, umber=27, willow=59, larch=43, nettle=64, jade=50, slate=42, heath=44, cedar=77, reed=85, iris=65, yew=72.\nWhat is the recorded number for yew?",
|
||||
"answer": 72
|
||||
},
|
||||
{
|
||||
"id": "test-018-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=58, umber=27, willow=59, larch=72, nettle=64, jade=50, slate=42, heath=44, cedar=77, reed=85, iris=65, yew=43.\nWhat is the recorded number for yew?",
|
||||
"answer": 43
|
||||
},
|
||||
{
|
||||
"id": "test-019-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: pine=99, slate=58, yew=25, quartz=54, willow=88, vine=40, heath=68, grove=33, elm=32, cedar=80, fern=98, jade=85.\nWhat is the recorded number for fern?",
|
||||
"answer": 98
|
||||
},
|
||||
{
|
||||
"id": "test-019-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: pine=99, slate=58, yew=25, quartz=54, willow=88, vine=40, heath=68, grove=33, elm=32, cedar=80, fern=85, jade=98.\nWhat is the recorded number for fern?",
|
||||
"answer": 85
|
||||
},
|
||||
{
|
||||
"id": "test-020-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: amber=80, umber=98, dune=50, maple=90, slate=41, pine=57, birch=74, elm=27, quartz=66, larch=61, iris=35, kelp=49.\nWhat is the recorded number for iris?",
|
||||
"answer": 35
|
||||
},
|
||||
{
|
||||
"id": "test-020-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: amber=80, umber=98, dune=50, maple=90, slate=35, pine=57, birch=74, elm=27, quartz=66, larch=61, iris=41, kelp=49.\nWhat is the recorded number for iris?",
|
||||
"answer": 41
|
||||
},
|
||||
{
|
||||
"id": "test-021-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=74, olive=20, elm=37, kelp=33, slate=86, iris=99, quartz=61, yew=39, jade=21, pine=50, amber=64, thyme=73.\nWhat is the recorded number for elm?",
|
||||
"answer": 37
|
||||
},
|
||||
{
|
||||
"id": "test-021-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=74, olive=20, elm=64, kelp=33, slate=86, iris=99, quartz=61, yew=39, jade=21, pine=50, amber=37, thyme=73.\nWhat is the recorded number for elm?",
|
||||
"answer": 64
|
||||
},
|
||||
{
|
||||
"id": "test-022-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=48, reed=49, birch=31, jade=83, thyme=72, willow=50, heath=54, pine=39, slate=56, nettle=26, vine=22, grove=57.\nWhat is the recorded number for heath?",
|
||||
"answer": 54
|
||||
},
|
||||
{
|
||||
"id": "test-022-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: dune=48, reed=49, birch=31, jade=83, thyme=72, willow=50, heath=56, pine=39, slate=54, nettle=26, vine=22, grove=57.\nWhat is the recorded number for heath?",
|
||||
"answer": 56
|
||||
},
|
||||
{
|
||||
"id": "test-023-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=82, vine=61, jade=68, quartz=93, cedar=76, grove=59, willow=67, fern=65, amber=38, dune=29, maple=37, slate=21.\nWhat is the recorded number for fern?",
|
||||
"answer": 65
|
||||
},
|
||||
{
|
||||
"id": "test-023-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=82, vine=61, jade=68, quartz=93, cedar=76, grove=59, willow=67, fern=29, amber=38, dune=65, maple=37, slate=21.\nWhat is the recorded number for fern?",
|
||||
"answer": 29
|
||||
},
|
||||
{
|
||||
"id": "test-024-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=27, elm=39, willow=90, heath=36, slate=61, grove=85, vine=67, birch=56, cedar=47, iris=93, kelp=54, thyme=84.\nWhat is the recorded number for thyme?",
|
||||
"answer": 84
|
||||
},
|
||||
{
|
||||
"id": "test-024-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: fern=27, elm=39, willow=90, heath=84, slate=61, grove=85, vine=67, birch=56, cedar=47, iris=93, kelp=54, thyme=36.\nWhat is the recorded number for thyme?",
|
||||
"answer": 36
|
||||
},
|
||||
{
|
||||
"id": "test-025-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=41, quartz=66, reed=48, willow=47, fern=44, slate=40, pine=52, grove=90, nettle=33, maple=23, larch=92, olive=55.\nWhat is the recorded number for maple?",
|
||||
"answer": 23
|
||||
},
|
||||
{
|
||||
"id": "test-025-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=41, quartz=66, reed=48, willow=47, fern=23, slate=40, pine=52, grove=90, nettle=33, maple=44, larch=92, olive=55.\nWhat is the recorded number for maple?",
|
||||
"answer": 44
|
||||
},
|
||||
{
|
||||
"id": "test-026-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=30, olive=71, quartz=40, cedar=37, larch=55, amber=90, maple=74, grove=21, pine=23, birch=70, jade=89, slate=43.\nWhat is the recorded number for maple?",
|
||||
"answer": 74
|
||||
},
|
||||
{
|
||||
"id": "test-026-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: thyme=30, olive=71, quartz=40, cedar=37, larch=55, amber=90, maple=70, grove=21, pine=23, birch=74, jade=89, slate=43.\nWhat is the recorded number for maple?",
|
||||
"answer": 70
|
||||
},
|
||||
{
|
||||
"id": "test-027-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=84, yew=47, amber=48, reed=91, elm=79, grove=99, fern=95, kelp=90, olive=29, dune=39, maple=92, vine=98.\nWhat is the recorded number for heath?",
|
||||
"answer": 84
|
||||
},
|
||||
{
|
||||
"id": "test-027-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=39, yew=47, amber=48, reed=91, elm=79, grove=99, fern=95, kelp=90, olive=29, dune=84, maple=92, vine=98.\nWhat is the recorded number for heath?",
|
||||
"answer": 39
|
||||
},
|
||||
{
|
||||
"id": "test-028-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=79, umber=50, heath=41, larch=87, elm=48, yew=51, willow=45, olive=53, fern=60, cedar=27, kelp=68, reed=30.\nWhat is the recorded number for slate?",
|
||||
"answer": 79
|
||||
},
|
||||
{
|
||||
"id": "test-028-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: slate=68, umber=50, heath=41, larch=87, elm=48, yew=51, willow=45, olive=53, fern=60, cedar=27, kelp=79, reed=30.\nWhat is the recorded number for slate?",
|
||||
"answer": 68
|
||||
},
|
||||
{
|
||||
"id": "test-029-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: maple=24, elm=41, amber=60, willow=78, quartz=20, thyme=28, olive=92, vine=23, fern=72, iris=33, umber=47, pine=66.\nWhat is the recorded number for quartz?",
|
||||
"answer": 20
|
||||
},
|
||||
{
|
||||
"id": "test-029-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: maple=24, elm=41, amber=60, willow=20, quartz=78, thyme=28, olive=92, vine=23, fern=72, iris=33, umber=47, pine=66.\nWhat is the recorded number for quartz?",
|
||||
"answer": 78
|
||||
},
|
||||
{
|
||||
"id": "test-030-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: grove=47, fern=45, elm=26, amber=22, quartz=86, reed=78, birch=29, cedar=74, willow=99, slate=52, larch=58, maple=55.\nWhat is the recorded number for fern?",
|
||||
"answer": 45
|
||||
},
|
||||
{
|
||||
"id": "test-030-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: grove=47, fern=74, elm=26, amber=22, quartz=86, reed=78, birch=29, cedar=45, willow=99, slate=52, larch=58, maple=55.\nWhat is the recorded number for fern?",
|
||||
"answer": 74
|
||||
},
|
||||
{
|
||||
"id": "test-031-0",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=50, jade=46, birch=70, larch=99, dune=78, nettle=49, umber=38, vine=60, amber=28, grove=69, olive=58, kelp=92.\nWhat is the recorded number for kelp?",
|
||||
"answer": 92
|
||||
},
|
||||
{
|
||||
"id": "test-031-1",
|
||||
"task": "lookup",
|
||||
"question": "Records in time order: heath=50, jade=46, birch=92, larch=99, dune=78, nettle=49, umber=38, vine=60, amber=28, grove=69, olive=58, kelp=70.\nWhat is the recorded number for kelp?",
|
||||
"answer": 70
|
||||
}
|
||||
]
|
||||
},
|
||||
"base_adapter": "c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29",
|
||||
"sites": [
|
||||
15,
|
||||
19,
|
||||
23
|
||||
],
|
||||
"rank_budget": [
|
||||
32,
|
||||
40,
|
||||
48
|
||||
],
|
||||
"uniform_rank": 40,
|
||||
"cap": 24,
|
||||
"rank_selection": "Order layers by increase in complete-answer correct count upon single restoration; ties by ascending layer index, earlier gets higher rank.",
|
||||
"primary_metric": "complete answer accuracy; paired uncertainty resamples counterfactual pairs",
|
||||
"secondary_metric": "both members of pair correct"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"seed": 621011,
|
||||
"parameters": 2476032,
|
||||
"diagnostic_scores": {
|
||||
"baseline": 0,
|
||||
"restore-15": 15,
|
||||
"restore-19": 16,
|
||||
"restore-23": 1
|
||||
},
|
||||
"ranks": {
|
||||
"allocated": {
|
||||
"19": 48,
|
||||
"15": 40,
|
||||
"23": 32
|
||||
},
|
||||
"reversed": {
|
||||
"19": 32,
|
||||
"15": 40,
|
||||
"23": 48
|
||||
},
|
||||
"uniform": {
|
||||
"15": 40,
|
||||
"19": 40,
|
||||
"23": 40
|
||||
}
|
||||
},
|
||||
"initial_state_by_layer_sha256": {
|
||||
"shared-allocated": {
|
||||
"15": "9af9d1b0a03933874ac6bca5b42337d0a569d5649d0f5a3b210ee229c475d2fe",
|
||||
"19": "3b5f0f486671233b03f16cfa973eddbfbb4851a2f2027ecbe222bc24439e074a",
|
||||
"23": "639d755d4d403c688c887e56f01dc3f45ba0fe2733cdce2ea9dff5ce8f7de204"
|
||||
},
|
||||
"shared-uniform": {
|
||||
"15": "9af9d1b0a03933874ac6bca5b42337d0a569d5649d0f5a3b210ee229c475d2fe",
|
||||
"19": "4f3db2093ff2360e651ff62a938d45d1a8af3c3115c7bde81bf2dee49ca8f2a4",
|
||||
"23": "f4308bfa4436812592db5e799db3fe5cd5f1d5908bfd1a8cbf1718801436ef44"
|
||||
},
|
||||
"shared-reversed": {
|
||||
"15": "9af9d1b0a03933874ac6bca5b42337d0a569d5649d0f5a3b210ee229c475d2fe",
|
||||
"19": "e852591d89c30c8d367b3d3de8c5182fcdd3bd76b9f4e13d962faad4c8c975df",
|
||||
"23": "c1d7b72136e328821614f4e28e1e0287567df65459d80302537e2085c1777800"
|
||||
},
|
||||
"local-uniform": {
|
||||
"15": "9af9d1b0a03933874ac6bca5b42337d0a569d5649d0f5a3b210ee229c475d2fe",
|
||||
"19": "4f3db2093ff2360e651ff62a938d45d1a8af3c3115c7bde81bf2dee49ca8f2a4",
|
||||
"23": "f4308bfa4436812592db5e799db3fe5cd5f1d5908bfd1a8cbf1718801436ef44"
|
||||
},
|
||||
"local-allocated": {
|
||||
"15": "9af9d1b0a03933874ac6bca5b42337d0a569d5649d0f5a3b210ee229c475d2fe",
|
||||
"19": "3b5f0f486671233b03f16cfa973eddbfbb4851a2f2027ecbe222bc24439e074a",
|
||||
"23": "639d755d4d403c688c887e56f01dc3f45ba0fe2733cdce2ea9dff5ce8f7de204"
|
||||
}
|
||||
},
|
||||
"digest_encoding": "Sorted state_dict names per layer. For each tensor: compact JSON [name,dtype,shape], newline, contiguous native tensor bytes (little endian)."
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"split": "validation",
|
||||
"questions": 16,
|
||||
"pairs": 8,
|
||||
"planned_rank_conditions": [
|
||||
"shared-allocated",
|
||||
"shared-uniform",
|
||||
"shared-reversed",
|
||||
"local-uniform",
|
||||
"local-allocated"
|
||||
],
|
||||
"completed_rank_conditions": 2,
|
||||
"prior_pairs_with_changed_answers": [
|
||||
"validation-003",
|
||||
"validation-006"
|
||||
],
|
||||
"selected_models": {
|
||||
"shared-allocated": {
|
||||
"validation_correct_by_epoch": [
|
||||
2,
|
||||
3
|
||||
],
|
||||
"selected_epoch": 2,
|
||||
"selected_correct": 3,
|
||||
"selected_pairs_both_correct": 0,
|
||||
"pairs_with_changed_answers": [
|
||||
"validation-004",
|
||||
"validation-005",
|
||||
"validation-006"
|
||||
],
|
||||
"versus_prior": {
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"net": -2,
|
||||
"same_token_streams": 12
|
||||
}
|
||||
},
|
||||
"shared-uniform": {
|
||||
"validation_correct_by_epoch": [
|
||||
3,
|
||||
5
|
||||
],
|
||||
"selected_epoch": 2,
|
||||
"selected_correct": 5,
|
||||
"selected_pairs_both_correct": 1,
|
||||
"pairs_with_changed_answers": [
|
||||
"validation-003",
|
||||
"validation-006"
|
||||
],
|
||||
"versus_prior": {
|
||||
"corrected": [],
|
||||
"lost": [],
|
||||
"net": 0,
|
||||
"same_token_streams": 16
|
||||
}
|
||||
}
|
||||
},
|
||||
"comparisons": {
|
||||
"shared-allocated-vs-shared-uniform": {
|
||||
"selected": {
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"net": -2,
|
||||
"same_token_streams": 12
|
||||
},
|
||||
"at_same_epoch": [
|
||||
{
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-005-1"
|
||||
],
|
||||
"net": -1,
|
||||
"same_token_streams": 13
|
||||
},
|
||||
{
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"net": -2,
|
||||
"same_token_streams": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"question_ids_with_a_correct_candidate_answer": {
|
||||
"allocated_or_student": [
|
||||
"validation-000-1",
|
||||
"validation-004-1",
|
||||
"validation-006-0"
|
||||
],
|
||||
"allocated_or_student_or_prior": [
|
||||
"validation-000-1",
|
||||
"validation-003-0",
|
||||
"validation-003-1",
|
||||
"validation-004-1",
|
||||
"validation-006-0"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"diagnostic_correct": {
|
||||
"baseline": 0,
|
||||
"restore-15": 15,
|
||||
"restore-19": 16,
|
||||
"restore-23": 1
|
||||
},
|
||||
"ranks": {
|
||||
"19": 48,
|
||||
"15": 40,
|
||||
"23": 32
|
||||
},
|
||||
"shared": true,
|
||||
"parameters": 2476032,
|
||||
"seed": 621011,
|
||||
"epochs": 2
|
||||
}
|
||||
@@ -0,0 +1,835 @@
|
||||
{
|
||||
"selected_epoch": 2,
|
||||
"epochs": [
|
||||
{
|
||||
"epoch": 1,
|
||||
"steps": [
|
||||
{
|
||||
"capture": "000.npz",
|
||||
"huber": 6.484985828399658,
|
||||
"completion_ce": 3.689948320388794
|
||||
},
|
||||
{
|
||||
"capture": "001.npz",
|
||||
"huber": 6.435533046722412,
|
||||
"completion_ce": 2.815239667892456
|
||||
},
|
||||
{
|
||||
"capture": "002.npz",
|
||||
"huber": 6.501165866851807,
|
||||
"completion_ce": 2.2910900115966797
|
||||
},
|
||||
{
|
||||
"capture": "003.npz",
|
||||
"huber": 6.459116458892822,
|
||||
"completion_ce": 1.4170297384262085
|
||||
},
|
||||
{
|
||||
"capture": "004.npz",
|
||||
"huber": 6.366516590118408,
|
||||
"completion_ce": 1.6510658264160156
|
||||
},
|
||||
{
|
||||
"capture": "005.npz",
|
||||
"huber": 6.376306533813477,
|
||||
"completion_ce": 1.031119704246521
|
||||
},
|
||||
{
|
||||
"capture": "006.npz",
|
||||
"huber": 6.363456726074219,
|
||||
"completion_ce": 1.2906379699707031
|
||||
},
|
||||
{
|
||||
"capture": "007.npz",
|
||||
"huber": 6.301973819732666,
|
||||
"completion_ce": 1.2287101745605469
|
||||
},
|
||||
{
|
||||
"capture": "008.npz",
|
||||
"huber": 6.219982147216797,
|
||||
"completion_ce": 1.8168309926986694
|
||||
},
|
||||
{
|
||||
"capture": "009.npz",
|
||||
"huber": 6.2503790855407715,
|
||||
"completion_ce": 1.3349508047103882
|
||||
},
|
||||
{
|
||||
"capture": "010.npz",
|
||||
"huber": 6.146358013153076,
|
||||
"completion_ce": 0.8580843806266785
|
||||
},
|
||||
{
|
||||
"capture": "011.npz",
|
||||
"huber": 6.143476963043213,
|
||||
"completion_ce": 1.3071588277816772
|
||||
},
|
||||
{
|
||||
"capture": "012.npz",
|
||||
"huber": 6.126444339752197,
|
||||
"completion_ce": 1.2763277292251587
|
||||
},
|
||||
{
|
||||
"capture": "013.npz",
|
||||
"huber": 6.020519733428955,
|
||||
"completion_ce": 0.9891433715820312
|
||||
},
|
||||
{
|
||||
"capture": "014.npz",
|
||||
"huber": 5.930761337280273,
|
||||
"completion_ce": 0.878393828868866
|
||||
},
|
||||
{
|
||||
"capture": "015.npz",
|
||||
"huber": 5.9369354248046875,
|
||||
"completion_ce": 1.1470876932144165
|
||||
},
|
||||
{
|
||||
"capture": "016.npz",
|
||||
"huber": 5.919126987457275,
|
||||
"completion_ce": 0.3603922426700592
|
||||
},
|
||||
{
|
||||
"capture": "017.npz",
|
||||
"huber": 5.926023483276367,
|
||||
"completion_ce": 2.0578842163085938
|
||||
},
|
||||
{
|
||||
"capture": "018.npz",
|
||||
"huber": 5.8985443115234375,
|
||||
"completion_ce": 1.4073950052261353
|
||||
},
|
||||
{
|
||||
"capture": "019.npz",
|
||||
"huber": 5.787118434906006,
|
||||
"completion_ce": 0.5757427215576172
|
||||
},
|
||||
{
|
||||
"capture": "020.npz",
|
||||
"huber": 5.741567611694336,
|
||||
"completion_ce": 0.9653084874153137
|
||||
},
|
||||
{
|
||||
"capture": "021.npz",
|
||||
"huber": 5.615768909454346,
|
||||
"completion_ce": 1.2124963998794556
|
||||
},
|
||||
{
|
||||
"capture": "022.npz",
|
||||
"huber": 5.636579990386963,
|
||||
"completion_ce": 1.0802103281021118
|
||||
},
|
||||
{
|
||||
"capture": "023.npz",
|
||||
"huber": 5.545068264007568,
|
||||
"completion_ce": 1.0685577392578125
|
||||
}
|
||||
],
|
||||
"validation": [
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"epoch": 2,
|
||||
"steps": [
|
||||
{
|
||||
"capture": "000.npz",
|
||||
"huber": 5.412282943725586,
|
||||
"completion_ce": 1.240404725074768
|
||||
},
|
||||
{
|
||||
"capture": "001.npz",
|
||||
"huber": 5.291560173034668,
|
||||
"completion_ce": 0.4346771240234375
|
||||
},
|
||||
{
|
||||
"capture": "002.npz",
|
||||
"huber": 5.254405975341797,
|
||||
"completion_ce": 1.4337667226791382
|
||||
},
|
||||
{
|
||||
"capture": "003.npz",
|
||||
"huber": 5.112814426422119,
|
||||
"completion_ce": 0.49626222252845764
|
||||
},
|
||||
{
|
||||
"capture": "004.npz",
|
||||
"huber": 4.9319281578063965,
|
||||
"completion_ce": 0.5854136347770691
|
||||
},
|
||||
{
|
||||
"capture": "005.npz",
|
||||
"huber": 4.811761379241943,
|
||||
"completion_ce": 0.5730641484260559
|
||||
},
|
||||
{
|
||||
"capture": "006.npz",
|
||||
"huber": 4.663804054260254,
|
||||
"completion_ce": 1.0617586374282837
|
||||
},
|
||||
{
|
||||
"capture": "007.npz",
|
||||
"huber": 4.466916561126709,
|
||||
"completion_ce": 0.34136962890625
|
||||
},
|
||||
{
|
||||
"capture": "008.npz",
|
||||
"huber": 4.245267868041992,
|
||||
"completion_ce": 0.9211139678955078
|
||||
},
|
||||
{
|
||||
"capture": "009.npz",
|
||||
"huber": 4.138031959533691,
|
||||
"completion_ce": 0.912613570690155
|
||||
},
|
||||
{
|
||||
"capture": "010.npz",
|
||||
"huber": 3.917837142944336,
|
||||
"completion_ce": 0.7355403900146484
|
||||
},
|
||||
{
|
||||
"capture": "011.npz",
|
||||
"huber": 3.8383302688598633,
|
||||
"completion_ce": 0.86811763048172
|
||||
},
|
||||
{
|
||||
"capture": "012.npz",
|
||||
"huber": 3.793792486190796,
|
||||
"completion_ce": 0.525964081287384
|
||||
},
|
||||
{
|
||||
"capture": "013.npz",
|
||||
"huber": 3.7311267852783203,
|
||||
"completion_ce": 0.6477171778678894
|
||||
},
|
||||
{
|
||||
"capture": "014.npz",
|
||||
"huber": 3.660640001296997,
|
||||
"completion_ce": 0.3576374053955078
|
||||
},
|
||||
{
|
||||
"capture": "015.npz",
|
||||
"huber": 3.590545415878296,
|
||||
"completion_ce": 0.42681822180747986
|
||||
},
|
||||
{
|
||||
"capture": "016.npz",
|
||||
"huber": 3.478916883468628,
|
||||
"completion_ce": 0.2565886080265045
|
||||
},
|
||||
{
|
||||
"capture": "017.npz",
|
||||
"huber": 3.4254138469696045,
|
||||
"completion_ce": 1.4864343404769897
|
||||
},
|
||||
{
|
||||
"capture": "018.npz",
|
||||
"huber": 3.2207138538360596,
|
||||
"completion_ce": 0.25919023156166077
|
||||
},
|
||||
{
|
||||
"capture": "019.npz",
|
||||
"huber": 3.0474510192871094,
|
||||
"completion_ce": 0.08626111596822739
|
||||
},
|
||||
{
|
||||
"capture": "020.npz",
|
||||
"huber": 2.88421893119812,
|
||||
"completion_ce": 0.09066835790872574
|
||||
},
|
||||
{
|
||||
"capture": "021.npz",
|
||||
"huber": 2.696475028991699,
|
||||
"completion_ce": 0.09523773193359375
|
||||
},
|
||||
{
|
||||
"capture": "022.npz",
|
||||
"huber": 2.649243116378784,
|
||||
"completion_ce": 0.6278018951416016
|
||||
},
|
||||
{
|
||||
"capture": "023.npz",
|
||||
"huber": 2.5207579135894775,
|
||||
"completion_ce": 0.4561271667480469
|
||||
}
|
||||
],
|
||||
"validation": [
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
18,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "33<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 33,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
18,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "33<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 33,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "78<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 78,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "74<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 74,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"updates": 48,
|
||||
"validation_correct": [
|
||||
2,
|
||||
3
|
||||
],
|
||||
"selected_epoch": 2,
|
||||
"selected_pairs_both_correct": 0,
|
||||
"corrected_vs_prior": [],
|
||||
"lost_vs_prior": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"sha256": {
|
||||
"config.json": "fb6392312500cbfd043b59f374a1605a50e50537fe7e7c5ce1f93e81d956cc10",
|
||||
"trace.json": "5b2cc6113d00d4c9af92de29605127c5f7a2ad4d1e0b58300cc78639a5167db2",
|
||||
"lisa.pt": "f77ab651298bb59af17d43bdf7a2bb9102b8f90ee45db2d8f8fd579c2557e31b"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"diagnostic_correct": {
|
||||
"baseline": 0,
|
||||
"restore-15": 15,
|
||||
"restore-19": 16,
|
||||
"restore-23": 1
|
||||
},
|
||||
"ranks": {
|
||||
"15": 40,
|
||||
"19": 40,
|
||||
"23": 40
|
||||
},
|
||||
"shared": true,
|
||||
"parameters": 2476032,
|
||||
"seed": 621011,
|
||||
"epochs": 2
|
||||
}
|
||||
@@ -0,0 +1,835 @@
|
||||
{
|
||||
"selected_epoch": 2,
|
||||
"epochs": [
|
||||
{
|
||||
"epoch": 1,
|
||||
"steps": [
|
||||
{
|
||||
"capture": "000.npz",
|
||||
"huber": 6.466125965118408,
|
||||
"completion_ce": 3.640169858932495
|
||||
},
|
||||
{
|
||||
"capture": "001.npz",
|
||||
"huber": 6.416173458099365,
|
||||
"completion_ce": 2.7350101470947266
|
||||
},
|
||||
{
|
||||
"capture": "002.npz",
|
||||
"huber": 6.482085704803467,
|
||||
"completion_ce": 2.03899884223938
|
||||
},
|
||||
{
|
||||
"capture": "003.npz",
|
||||
"huber": 6.430853366851807,
|
||||
"completion_ce": 1.5210151672363281
|
||||
},
|
||||
{
|
||||
"capture": "004.npz",
|
||||
"huber": 6.329977512359619,
|
||||
"completion_ce": 1.6759847402572632
|
||||
},
|
||||
{
|
||||
"capture": "005.npz",
|
||||
"huber": 6.335151195526123,
|
||||
"completion_ce": 1.0699304342269897
|
||||
},
|
||||
{
|
||||
"capture": "006.npz",
|
||||
"huber": 6.317526340484619,
|
||||
"completion_ce": 1.4101346731185913
|
||||
},
|
||||
{
|
||||
"capture": "007.npz",
|
||||
"huber": 6.251140594482422,
|
||||
"completion_ce": 1.1468429565429688
|
||||
},
|
||||
{
|
||||
"capture": "008.npz",
|
||||
"huber": 6.1668524742126465,
|
||||
"completion_ce": 1.6777559518814087
|
||||
},
|
||||
{
|
||||
"capture": "009.npz",
|
||||
"huber": 6.1963043212890625,
|
||||
"completion_ce": 1.2596086263656616
|
||||
},
|
||||
{
|
||||
"capture": "010.npz",
|
||||
"huber": 6.088558673858643,
|
||||
"completion_ce": 0.6729698181152344
|
||||
},
|
||||
{
|
||||
"capture": "011.npz",
|
||||
"huber": 6.079294681549072,
|
||||
"completion_ce": 1.2998491525650024
|
||||
},
|
||||
{
|
||||
"capture": "012.npz",
|
||||
"huber": 6.054551601409912,
|
||||
"completion_ce": 1.4103832244873047
|
||||
},
|
||||
{
|
||||
"capture": "013.npz",
|
||||
"huber": 5.936060428619385,
|
||||
"completion_ce": 1.0076059103012085
|
||||
},
|
||||
{
|
||||
"capture": "014.npz",
|
||||
"huber": 5.830902576446533,
|
||||
"completion_ce": 0.8567708134651184
|
||||
},
|
||||
{
|
||||
"capture": "015.npz",
|
||||
"huber": 5.81991720199585,
|
||||
"completion_ce": 0.9816989898681641
|
||||
},
|
||||
{
|
||||
"capture": "016.npz",
|
||||
"huber": 5.782172679901123,
|
||||
"completion_ce": 0.32713380455970764
|
||||
},
|
||||
{
|
||||
"capture": "017.npz",
|
||||
"huber": 5.763124465942383,
|
||||
"completion_ce": 2.0601158142089844
|
||||
},
|
||||
{
|
||||
"capture": "018.npz",
|
||||
"huber": 5.706521511077881,
|
||||
"completion_ce": 1.5579833984375
|
||||
},
|
||||
{
|
||||
"capture": "019.npz",
|
||||
"huber": 5.558866500854492,
|
||||
"completion_ce": 0.44708251953125
|
||||
},
|
||||
{
|
||||
"capture": "020.npz",
|
||||
"huber": 5.477881908416748,
|
||||
"completion_ce": 1.1636791229248047
|
||||
},
|
||||
{
|
||||
"capture": "021.npz",
|
||||
"huber": 5.311099529266357,
|
||||
"completion_ce": 1.1208223104476929
|
||||
},
|
||||
{
|
||||
"capture": "022.npz",
|
||||
"huber": 5.279181957244873,
|
||||
"completion_ce": 1.268227219581604
|
||||
},
|
||||
{
|
||||
"capture": "023.npz",
|
||||
"huber": 5.142008304595947,
|
||||
"completion_ce": 0.9710490107536316
|
||||
}
|
||||
],
|
||||
"validation": [
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "97<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 97,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"epoch": 2,
|
||||
"steps": [
|
||||
{
|
||||
"capture": "000.npz",
|
||||
"huber": 4.952552318572998,
|
||||
"completion_ce": 1.4009037017822266
|
||||
},
|
||||
{
|
||||
"capture": "001.npz",
|
||||
"huber": 4.789427280426025,
|
||||
"completion_ce": 0.5592880249023438
|
||||
},
|
||||
{
|
||||
"capture": "002.npz",
|
||||
"huber": 4.726945400238037,
|
||||
"completion_ce": 1.2972265481948853
|
||||
},
|
||||
{
|
||||
"capture": "003.npz",
|
||||
"huber": 4.5856170654296875,
|
||||
"completion_ce": 0.5974127650260925
|
||||
},
|
||||
{
|
||||
"capture": "004.npz",
|
||||
"huber": 4.457610607147217,
|
||||
"completion_ce": 0.4448140561580658
|
||||
},
|
||||
{
|
||||
"capture": "005.npz",
|
||||
"huber": 4.406347274780273,
|
||||
"completion_ce": 0.6005427241325378
|
||||
},
|
||||
{
|
||||
"capture": "006.npz",
|
||||
"huber": 4.3611578941345215,
|
||||
"completion_ce": 1.11090087890625
|
||||
},
|
||||
{
|
||||
"capture": "007.npz",
|
||||
"huber": 4.287736415863037,
|
||||
"completion_ce": 0.4663238525390625
|
||||
},
|
||||
{
|
||||
"capture": "008.npz",
|
||||
"huber": 4.187578201293945,
|
||||
"completion_ce": 1.04208242893219
|
||||
},
|
||||
{
|
||||
"capture": "009.npz",
|
||||
"huber": 4.137438774108887,
|
||||
"completion_ce": 0.754715621471405
|
||||
},
|
||||
{
|
||||
"capture": "010.npz",
|
||||
"huber": 3.979546308517456,
|
||||
"completion_ce": 0.5380516052246094
|
||||
},
|
||||
{
|
||||
"capture": "011.npz",
|
||||
"huber": 3.8709640502929688,
|
||||
"completion_ce": 0.7800388336181641
|
||||
},
|
||||
{
|
||||
"capture": "012.npz",
|
||||
"huber": 3.749253273010254,
|
||||
"completion_ce": 0.5718275904655457
|
||||
},
|
||||
{
|
||||
"capture": "013.npz",
|
||||
"huber": 3.5951597690582275,
|
||||
"completion_ce": 0.8369833827018738
|
||||
},
|
||||
{
|
||||
"capture": "014.npz",
|
||||
"huber": 3.4549624919891357,
|
||||
"completion_ce": 0.37712350487709045
|
||||
},
|
||||
{
|
||||
"capture": "015.npz",
|
||||
"huber": 3.3932430744171143,
|
||||
"completion_ce": 0.47049713134765625
|
||||
},
|
||||
{
|
||||
"capture": "016.npz",
|
||||
"huber": 3.3298141956329346,
|
||||
"completion_ce": 0.24415016174316406
|
||||
},
|
||||
{
|
||||
"capture": "017.npz",
|
||||
"huber": 3.315248727798462,
|
||||
"completion_ce": 1.5147151947021484
|
||||
},
|
||||
{
|
||||
"capture": "018.npz",
|
||||
"huber": 3.2439496517181396,
|
||||
"completion_ce": 0.15868441760540009
|
||||
},
|
||||
{
|
||||
"capture": "019.npz",
|
||||
"huber": 3.1188666820526123,
|
||||
"completion_ce": 0.05583127215504646
|
||||
},
|
||||
{
|
||||
"capture": "020.npz",
|
||||
"huber": 3.04500412940979,
|
||||
"completion_ce": 0.022246679291129112
|
||||
},
|
||||
{
|
||||
"capture": "021.npz",
|
||||
"huber": 2.903524160385132,
|
||||
"completion_ce": 0.07955551147460938
|
||||
},
|
||||
{
|
||||
"capture": "022.npz",
|
||||
"huber": 2.9015865325927734,
|
||||
"completion_ce": 1.1182270050048828
|
||||
},
|
||||
{
|
||||
"capture": "023.npz",
|
||||
"huber": 2.8223178386688232,
|
||||
"completion_ce": 0.44306373596191406
|
||||
}
|
||||
],
|
||||
"validation": [
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "83<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 83,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "78<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 78,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "74<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 74,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"updates": 48,
|
||||
"validation_correct": [
|
||||
3,
|
||||
5
|
||||
],
|
||||
"selected_epoch": 2,
|
||||
"selected_pairs_both_correct": 1,
|
||||
"corrected_vs_prior": [],
|
||||
"lost_vs_prior": [],
|
||||
"matches_prior_48_fit_loss_records": true,
|
||||
"selected_tensors_match_prior": true,
|
||||
"sha256": {
|
||||
"config.json": "59b9f4c954269294a59ca40227a9fcd69f6a591e9a023f01a2cad4f51bcd15bb",
|
||||
"trace.json": "34be3c67e5c82aed4bfdd6bdd17ac8bf8b6efb830faa08c7373dc3af03936d52",
|
||||
"lisa.pt": "c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"spec": {
|
||||
"protocol_sha256": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
|
||||
"base_sha256": "c82db5af7fa42cf58a349f3e53961da2360b211a7ed606f53a728860c64f6f29",
|
||||
"fraction": 0.5,
|
||||
"parameters": 2476032,
|
||||
"endpoints": {
|
||||
"student": {
|
||||
"trained_sha256": "7faacdffbc81d0c786ef0c7a5acaf1724d82af155fed7b834dabc73dcf91f3a4",
|
||||
"midpoint_sha256": "d0cf6b4ad1b4791dcaa4ebf50eb623f16260249996fe810ee8f0905dedb8a335"
|
||||
},
|
||||
"reference": {
|
||||
"trained_sha256": "21ae007cb7343c1a0042655824bdc98ee2f03071d5f5dc43dbc8b441a262d84f",
|
||||
"midpoint_sha256": "e0e2c61fcaecb591631a66889c838d351c1bf5a608638c05622a20487d8de324"
|
||||
}
|
||||
}
|
||||
},
|
||||
"independent_checks": {
|
||||
"student": {
|
||||
"tensors_checked": 12,
|
||||
"parameters_checked": 2476032,
|
||||
"update_l2_ratio": 0.49999999981533333
|
||||
},
|
||||
"reference": {
|
||||
"tensors_checked": 12,
|
||||
"parameters_checked": 2476032,
|
||||
"update_l2_ratio": 0.5000000004162759
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
[
|
||||
{
|
||||
"id": "fit-lookup-000",
|
||||
"tokens": [
|
||||
23,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.0708420276641846
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-001",
|
||||
"tokens": [
|
||||
20,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.359794944524765
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-002",
|
||||
"tokens": [
|
||||
22,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.7561622858047485
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-003",
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.8009884357452393
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-004",
|
||||
"tokens": [
|
||||
24,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.570459008216858
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-005",
|
||||
"tokens": [
|
||||
20,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.1894524097442627
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-006",
|
||||
"tokens": [
|
||||
22,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.783402442932129
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-007",
|
||||
"tokens": [
|
||||
17,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.4688148498535156
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-008",
|
||||
"tokens": [
|
||||
19,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.3527965545654297
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-009",
|
||||
"tokens": [
|
||||
18,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.4242044687271118
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-010",
|
||||
"tokens": [
|
||||
19,
|
||||
20,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.16955293715000153
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-011",
|
||||
"tokens": [
|
||||
17,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.670910596847534
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-012",
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.7502222061157227
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-013",
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.21196232736110687
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-014",
|
||||
"tokens": [
|
||||
19,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.677167296409607
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-015",
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.1573168784379959
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-016",
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.09522029012441635
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-017",
|
||||
"tokens": [
|
||||
23,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.6205872297286987
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-018",
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.0968724489212036
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-019",
|
||||
"tokens": [
|
||||
24,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.365121454000473
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-020",
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.20771723985671997
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-021",
|
||||
"tokens": [
|
||||
24,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.0566303730010986
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-022",
|
||||
"tokens": [
|
||||
17,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.1767852306365967
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-023",
|
||||
"tokens": [
|
||||
19,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.3833431005477905
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
22,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "78<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 78,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
18,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "31<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 31,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"validation-reference": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"arm": "reference",
|
||||
"updates": 24,
|
||||
"identical_training_answer_tokens": 24,
|
||||
"training_prefix_positions": 72,
|
||||
"student_only_prefix_positions": 0,
|
||||
"baseline_correct": 5,
|
||||
"candidate_correct": 3,
|
||||
"baseline_pairs_both": 1,
|
||||
"candidate_pairs_both": 0,
|
||||
"validation_corrected_ids": [],
|
||||
"validation_lost_ids": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"sha256": {
|
||||
"protocol.json": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
|
||||
"trajectory-reference/adapter.pt": "21ae007cb7343c1a0042655824bdc98ee2f03071d5f5dc43dbc8b441a262d84f",
|
||||
"trajectory-reference/trace.json": "e9412a8033fd81c269cda1f3a8999b04f756f51c53b10e6bbeae81907066e40e",
|
||||
"trajectory-reference/validation-reference.json": "3b5557336570cbeb1f6a592013780dc3e00e7f29b4192d59c53c6b2493779b91",
|
||||
"validation-prior-lisa.json": "3a10cdd0a22e110b5468ba496c3440a8b510ab3595328df330e7ea02b0ccbb76"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
[
|
||||
{
|
||||
"id": "fit-lookup-000",
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.3920799493789673
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-001",
|
||||
"tokens": [
|
||||
20,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.3670388162136078
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-002",
|
||||
"tokens": [
|
||||
20,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.607092261314392
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-003",
|
||||
"tokens": [
|
||||
21,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.8484256267547607
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-004",
|
||||
"tokens": [
|
||||
24,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.487722396850586
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-005",
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.9051605463027954
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-006",
|
||||
"tokens": [
|
||||
22,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.4778107404708862
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-007",
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.0440306663513184
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-008",
|
||||
"tokens": [
|
||||
24,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.3969637155532837
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-009",
|
||||
"tokens": [
|
||||
20,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.133025646209717
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-010",
|
||||
"tokens": [
|
||||
19,
|
||||
20,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.16392825543880463
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-011",
|
||||
"tokens": [
|
||||
18,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.76891827583313
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-012",
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.3396949768066406
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-013",
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.2812904715538025
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-014",
|
||||
"tokens": [
|
||||
23,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.5917729139328003
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-015",
|
||||
"tokens": [
|
||||
24,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.20547236502170563
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-016",
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.10026532411575317
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-017",
|
||||
"tokens": [
|
||||
22,
|
||||
15,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.7930327653884888
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-018",
|
||||
"tokens": [
|
||||
22,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.4335891008377075
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-019",
|
||||
"tokens": [
|
||||
24,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.3742959797382355
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-020",
|
||||
"tokens": [
|
||||
24,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 0.4034559428691864
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-021",
|
||||
"tokens": [
|
||||
24,
|
||||
17,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.055336594581604
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-022",
|
||||
"tokens": [
|
||||
18,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 2.550983428955078
|
||||
},
|
||||
{
|
||||
"id": "fit-lookup-023",
|
||||
"tokens": [
|
||||
19,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"reverse_kl": 1.3725028038024902
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "43<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 43,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
17,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "29<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 29,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
18,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "38<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 38,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
18,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "31<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 31,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "49<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 49,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"validation-student": {
|
||||
"tokens": [
|
||||
19,
|
||||
21,
|
||||
248046
|
||||
],
|
||||
"response": "46<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 46,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"arm": "student",
|
||||
"updates": 24,
|
||||
"identical_training_answer_tokens": 11,
|
||||
"training_prefix_positions": 72,
|
||||
"student_only_prefix_positions": 25,
|
||||
"baseline_correct": 5,
|
||||
"candidate_correct": 2,
|
||||
"baseline_pairs_both": 1,
|
||||
"candidate_pairs_both": 0,
|
||||
"validation_corrected_ids": [],
|
||||
"validation_lost_ids": [
|
||||
"validation-003-0",
|
||||
"validation-003-1",
|
||||
"validation-006-0"
|
||||
],
|
||||
"sha256": {
|
||||
"protocol.json": "6858dbc64db0b989e8112e9dbea70662a2a05f66f11b180e8f2c668c74c43aef",
|
||||
"trajectory-student/adapter.pt": "7faacdffbc81d0c786ef0c7a5acaf1724d82af155fed7b834dabc73dcf91f3a4",
|
||||
"trajectory-student/trace.json": "9ca7cc53002073f7764ce855e91a2fd44029c9c63dd6ce55e9f7db43309f7e45",
|
||||
"trajectory-student/validation-student.json": "af213ef477e99780d48b995f8a1d07ada6409bd70011202fb73db56247199c5f",
|
||||
"validation-prior-lisa.json": "3a10cdd0a22e110b5468ba496c3440a8b510ab3595328df330e7ea02b0ccbb76"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"validation_questions": 16,
|
||||
"validation_pairs": 8,
|
||||
"scores": {
|
||||
"prior-lisa": {
|
||||
"correct": 5,
|
||||
"both_correct": 1,
|
||||
"answers_unchanged_after_swap": 6
|
||||
},
|
||||
"student": {
|
||||
"correct": 2,
|
||||
"both_correct": 0,
|
||||
"answers_unchanged_after_swap": 4
|
||||
},
|
||||
"reference": {
|
||||
"correct": 3,
|
||||
"both_correct": 0,
|
||||
"answers_unchanged_after_swap": 4
|
||||
}
|
||||
},
|
||||
"changes": {
|
||||
"student-vs-prior-lisa": {
|
||||
"net": -3,
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-003-0",
|
||||
"validation-003-1",
|
||||
"validation-006-0"
|
||||
],
|
||||
"identical_validation_token_streams": 8
|
||||
},
|
||||
"reference-vs-prior-lisa": {
|
||||
"net": -2,
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-003-0",
|
||||
"validation-003-1"
|
||||
],
|
||||
"identical_validation_token_streams": 10
|
||||
},
|
||||
"student-vs-reference": {
|
||||
"net": -1,
|
||||
"corrected": [],
|
||||
"lost": [
|
||||
"validation-006-0"
|
||||
],
|
||||
"identical_validation_token_streams": 13
|
||||
}
|
||||
},
|
||||
"fit_trajectory_overlap": {
|
||||
"same_complete_trajectory": 11,
|
||||
"distinct_student_prefix_positions": 25,
|
||||
"student_positions": 72,
|
||||
"reference_positions": 72
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,290 @@
|
||||
[
|
||||
{
|
||||
"id": "validation-000-0",
|
||||
"task": "lookup",
|
||||
"gold": 44,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-000-1",
|
||||
"task": "lookup",
|
||||
"gold": 91,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "91<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 91,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-0",
|
||||
"task": "lookup",
|
||||
"gold": 33,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-001-1",
|
||||
"task": "lookup",
|
||||
"gold": 28,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
22,
|
||||
248046
|
||||
],
|
||||
"response": "47<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 47,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-0",
|
||||
"task": "lookup",
|
||||
"gold": 42,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-002-1",
|
||||
"task": "lookup",
|
||||
"gold": 56,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
20,
|
||||
16,
|
||||
248046
|
||||
],
|
||||
"response": "51<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 51,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-0",
|
||||
"task": "lookup",
|
||||
"gold": 93,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-003-1",
|
||||
"task": "lookup",
|
||||
"gold": 83,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "83<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 83,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-0",
|
||||
"task": "lookup",
|
||||
"gold": 23,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-004-1",
|
||||
"task": "lookup",
|
||||
"gold": 89,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
23,
|
||||
24,
|
||||
248046
|
||||
],
|
||||
"response": "89<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 89,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-0",
|
||||
"task": "lookup",
|
||||
"gold": 63,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-005-1",
|
||||
"task": "lookup",
|
||||
"gold": 49,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
19,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "44<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 44,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-0",
|
||||
"task": "lookup",
|
||||
"gold": 78,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
23,
|
||||
248046
|
||||
],
|
||||
"response": "78<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 78,
|
||||
"correct": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-006-1",
|
||||
"task": "lookup",
|
||||
"gold": 29,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
22,
|
||||
19,
|
||||
248046
|
||||
],
|
||||
"response": "74<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 74,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-0",
|
||||
"task": "lookup",
|
||||
"gold": 64,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "validation-007-1",
|
||||
"task": "lookup",
|
||||
"gold": 50,
|
||||
"arms": {
|
||||
"validation-prior-lisa": {
|
||||
"tokens": [
|
||||
24,
|
||||
18,
|
||||
248046
|
||||
],
|
||||
"response": "93<|im_end|>",
|
||||
"stop": "eos",
|
||||
"answer": 93,
|
||||
"correct": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,169 @@
|
||||
"""Regression checks for rank allocation, donor controls and reverse KL."""
|
||||
import json
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
|
||||
from crossqkv.lisa_combination_eval import changed_answers, score_differences
|
||||
from crossqkv.lisa_combination_screen import SITES, paired_questions
|
||||
from crossqkv.lisa_rank_compare import assignments, make_adapters, score_gold_answers
|
||||
from crossqkv.lisa_trajectory_midpoint import midpoint, summarize
|
||||
from crossqkv.lisa_trajectory_train import replay_teacher_inputs, reverse_kl
|
||||
|
||||
|
||||
class CombinationTests(unittest.TestCase):
|
||||
def test_checkpoint_midpoint_preserves_shape_dtype_and_endpoints(self):
|
||||
base = {'a': torch.tensor([2., -4.]), 'b': torch.tensor([1.], dtype=torch.bfloat16)}
|
||||
trained = {'a': torch.tensor([0., 6.]), 'b': torch.tensor([3.], dtype=torch.bfloat16)}
|
||||
middle = midpoint(base, trained)
|
||||
torch.testing.assert_close(middle['a'], torch.tensor([1., 1.]))
|
||||
torch.testing.assert_close(middle['b'], torch.tensor([2.], dtype=torch.bfloat16))
|
||||
self.assertEqual(base['a'].tolist(), [2., -4.])
|
||||
self.assertEqual(trained['a'].tolist(), [0., 6.])
|
||||
with self.assertRaises(ValueError):
|
||||
midpoint(base, {'a': torch.ones(1), 'b': trained['b']})
|
||||
|
||||
def test_midpoint_comparisons_keep_gains_losses_and_pairs(self):
|
||||
qs = [{'id': f'q{i}'} for i in range(4)]
|
||||
flags = {'prior-lisa': [1, 0, 1, 0], 'trajectory-student': [0, 0, 1, 0],
|
||||
'trajectory-reference': [1, 0, 0, 0], 'half-reference': [1, 0, 0, 0],
|
||||
'half-student': [1, 1, 0, 1]}
|
||||
answers = {k: [{'correct': bool(x)} for x in v] for k, v in flags.items()}
|
||||
val = summarize(qs, answers, intervals=False)
|
||||
self.assertEqual(val['correct']['half-student'], 3)
|
||||
self.assertEqual(val['pairs_both_correct']['half-student'], 1)
|
||||
result = val['comparisons']['half-student-vs-prior-lisa']
|
||||
self.assertEqual(result, {'delta': .25, 'corrected': ['q1', 'q3'], 'lost': ['q2']})
|
||||
test = summarize(qs, answers, intervals=True)
|
||||
self.assertEqual(test['comparisons']['half-student-vs-prior-lisa']['interval_95'], [0., .5])
|
||||
self.assertEqual(test['comparisons']['half-student-vs-half-reference']['corrected'], ['q1', 'q3'])
|
||||
|
||||
def test_reference_replay_uses_native_tail_only_on_matching_gold_tokens(self):
|
||||
ids = torch.tensor([[13, 4, 7, 9]])
|
||||
lengths = torch.tensor([4])
|
||||
residual = torch.arange(12).reshape(1, 4, 3).float()
|
||||
donor = torch.arange(16).reshape(1, 1, 4, 4).float()
|
||||
|
||||
def native_tail(h, scores, sizes, mode, recipients):
|
||||
self.assertTrue(torch.equal(sizes, lengths))
|
||||
self.assertEqual((mode, recipients), ('native', ()))
|
||||
return h * 2, {}
|
||||
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
path = Path(folder)/'capture.npz'
|
||||
np.savez(path, ids=ids.numpy(), start=[2], residual=residual.numpy(), donor=donor.numpy())
|
||||
target, h, scores = replay_teacher_inputs(native_tail, path, ids, 2, lengths)
|
||||
self.assertTrue(torch.equal(target, 2 * residual))
|
||||
self.assertTrue(torch.equal(h, residual))
|
||||
self.assertTrue(torch.equal(scores, donor))
|
||||
for wrong_ids, start in [(ids + 1, 2), (ids, 1)]:
|
||||
with self.assertRaises(ValueError):
|
||||
replay_teacher_inputs(native_tail, path, wrong_ids, start, lengths)
|
||||
|
||||
def test_combinations_compare_to_the_original_and_matched_controls(self):
|
||||
scores = {
|
||||
'prior-lisa': np.array([[0, 1]]), 'shared-uniform': np.array([[1, 0]]),
|
||||
'shared-allocated': np.array([[1, 1]]), 'shared-reversed': np.array([[0, 0]]),
|
||||
'local-allocated': np.array([[1, 0]]), 'local-uniform': np.array([[0, 0]]),
|
||||
'trajectory-student': np.array([[1, 0]]), 'trajectory-reference': np.array([[0, 0]]),
|
||||
}
|
||||
differences = score_differences(scores)
|
||||
for name, expected in {
|
||||
'rank-vs-prior': [[1, 0]], 'rank-vs-uniform': [[0, 1]],
|
||||
'rank-vs-reversed': [[1, 1]], 'rank-vs-local': [[0, 1]],
|
||||
'rank-interaction': [[-1, 1]], 'student-vs-prior': [[1, -1]],
|
||||
'reference-vs-prior': [[0, -1]], 'student-vs-reference': [[1, 0]],
|
||||
}.items():
|
||||
np.testing.assert_array_equal(differences[name], expected, err_msg=name)
|
||||
|
||||
def test_joint_recoveries_require_beating_both_single_methods_on_one_item(self):
|
||||
items = [{'id': name} for name in ['a', 'b', 'c', 'd']]
|
||||
diffs = {'rank-vs-uniform': np.array([[1, -1], [1, 0]]),
|
||||
'rank-vs-local': np.array([[1, -1], [0, 0]]),
|
||||
'rank-interaction': np.array([[2, -2], [0, 0]])}
|
||||
result = changed_answers(items, diffs, np.array([[0, 1], [0, 1]]))
|
||||
self.assertEqual(result['pairwise']['rank-vs-uniform'],
|
||||
{'corrected': ['a', 'c'], 'lost': ['b']})
|
||||
self.assertNotIn('rank-interaction', result['pairwise'])
|
||||
self.assertEqual(result['rank_combination'], {
|
||||
'corrected_against_both': [{'id': 'a', 'local_uniform_correct': False}],
|
||||
'lost_against_both': [{'id': 'b', 'local_uniform_correct': True}]})
|
||||
|
||||
def test_reverse_kl_gradient_matches_dense_unequal_vocab_chunks(self):
|
||||
rng = torch.Generator().manual_seed(72504)
|
||||
def normal(*shape):
|
||||
return torch.randn(*shape, dtype=torch.float64, generator=rng)
|
||||
student = normal(3, 4).requires_grad_()
|
||||
teacher = normal(3, 4)
|
||||
weight = normal(13, 4)
|
||||
traversals = 0
|
||||
def chunks():
|
||||
nonlocal traversals
|
||||
traversals += 1
|
||||
yield from weight.split(5)
|
||||
|
||||
loss = reverse_kl(student, teacher, chunks)
|
||||
self.assertEqual(traversals, 2)
|
||||
logp = (student @ weight.T).log_softmax(-1)
|
||||
logq = (teacher @ weight.T).log_softmax(-1)
|
||||
dense = (logp.exp() * (logp - logq)).sum(-1).mean()
|
||||
torch.testing.assert_close(loss, dense)
|
||||
torch.testing.assert_close(torch.autograd.grad(loss, student)[0],
|
||||
torch.autograd.grad(dense, student)[0])
|
||||
|
||||
def test_gold_scores_cover_only_answer_and_stop_at_the_correct_shift(self):
|
||||
class Embedding:
|
||||
def __init__(self, weights):
|
||||
self.shape = weights.shape
|
||||
self.flat = weights.numpy().ravel()
|
||||
|
||||
def read(self, span):
|
||||
return self.flat[span]
|
||||
|
||||
def evict(self):
|
||||
pass
|
||||
|
||||
rng = torch.Generator().manual_seed(72507)
|
||||
weights = torch.randn(9, 4, generator=rng)
|
||||
outputs = {label: torch.randn(2, 5, 4, generator=rng) for label in ('baseline', 'restore-15')}
|
||||
ids = [[0, 1, 2, 3, 4, 8], [1, 0, 6, 8]]
|
||||
gold, scores = score_gold_answers(outputs, ids, [3, 2], Embedding(weights))
|
||||
self.assertEqual(gold, [[3, 4, 8], [6, 8]])
|
||||
for label, hidden in outputs.items():
|
||||
logp = (hidden @ weights.T).log_softmax(-1)
|
||||
expected = ([logp[0, 2, 3], logp[0, 3, 4], logp[0, 4, 8]],
|
||||
[logp[1, 1, 6], logp[1, 2, 8]])
|
||||
for row, answer in zip(scores, expected):
|
||||
torch.testing.assert_close(torch.tensor(row[label]), torch.stack(answer))
|
||||
|
||||
def test_diagnostic_tie_rule_and_wrong_assignment_control(self):
|
||||
rows = paired_questions('diagnostic', 2, 72501)
|
||||
protocol = {'splits': {'diagnostic': rows}, 'rank_budget': [32, 40, 48]}
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
directory = Path(folder)
|
||||
for label, correct in [('baseline', 0), ('restore-15', 1),
|
||||
('restore-19', 3), ('restore-23', 1)]:
|
||||
data = [{'id': x['id'], 'gold': x['answer'],
|
||||
'arms': {label: {'correct': i < correct}}} for i, x in enumerate(rows)]
|
||||
(directory/(label+'.json')).write_text(json.dumps(data))
|
||||
_, ranks = assignments(protocol, directory)
|
||||
self.assertEqual(ranks['allocated'], {19: 48, 15: 40, 23: 32})
|
||||
self.assertEqual(ranks['reversed'], {19: 32, 15: 40, 23: 48})
|
||||
|
||||
def test_local_control_is_insensitive_to_donor_with_equal_parameter_count(self):
|
||||
config = {'hidden_size': 8, 'num_attention_heads': 4, 'num_key_value_heads': 2,
|
||||
'rope_parameters': {'rope_theta': 10000, 'partial_rotary_factor': 0.25}}
|
||||
allocated = dict(zip(SITES, (32, 40, 48)))
|
||||
local = make_adapters(config, allocated, False)
|
||||
uniform = make_adapters(config, dict.fromkeys(SITES, 40), True)
|
||||
def count(adapters):
|
||||
return sum(p.numel() for a in adapters.values() for p in a.parameters())
|
||||
self.assertEqual(count(local), count(uniform))
|
||||
h = torch.randn(1, 3, 8)
|
||||
donor = torch.randn(1, 4, 3, 3)
|
||||
pos = torch.arange(3)[None, :]
|
||||
a = local[15]
|
||||
torch.testing.assert_close(a(h, donor, pos), a(h, donor * 5 + 2, pos))
|
||||
Reference in New Issue
Block a user