{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Evaluate looped model (updated tokenizer + data format)\n", "\n", "This notebook evaluates a trained model on atom/two-hop splits with:\n", "- no-loop pass\n", "- looped pass\n", "\n", "It reports accuracies for train/test splits and saves per-sample outputs plus\n", "output representations (hidden state at the answer position) for both passes." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/hengyu/anaconda3/envs/implicitreasoning/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] }, { "data": { "text/plain": [ "device(type='cuda', index=6)" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from pathlib import Path\n", "import json\n", "import numpy as np\n", "import torch\n", "from torch.utils.data import Dataset, DataLoader\n", "from transformers import AutoModelForCausalLM, AutoTokenizer, default_data_collator\n", "\n", "DEVICE = torch.device(\"cuda:6\" if torch.cuda.is_available() else \"cpu\")\n", "DEVICE" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "# Update these paths\n", "# MODEL_DIR = Path(\"/home/hengyu/ImplicitReasoning/outputs/loop_run.500.50.10.small.small.LR=1e-3.WD=0.2_diff_updated/best_twohop_test\")\n", "# DATA_DIR = Path(\"/home/hengyu/ImplicitReasoning/data/twin_twohop_truood_diff.500.50.10\")\n", "MODEL_DIR = Path(\"/home/hengyu/ImplicitReasoning/outputs/loop_run.50.10.5.small.small.LR=2e-3.WD=0.1_diff/best_twohop_test\")\n", "DATA_DIR = Path(\"/home/hengyu/ImplicitReasoning/data/twin_twohop_truood_diff.50.10.5\")\n", "OUTPUT_DIR = Path(\"/home/hengyu/ImplicitReasoning/outputs/loop_eval_v2\")\n", "OUTPUT_DIR.mkdir(parents=True, exist_ok=True)\n", "\n", "# Tokenizer/model options\n", "BASE_MODEL_NAME = \"gpt2\" # used for special tokens if you trained with --use-small-tokenizer\n", "USE_SMALL_TOKENIZER = True\n", "TRUST_REMOTE_CODE = False\n", "\n", "BATCH_SIZE = 64\n", "MAX_SAMPLES = None # set to int for quick debugging\n", "MAX_LENGTH = None # set to int to force padding length; None -> infer from data\n", "RNG_SEED = 0" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "def normalize_text(value):\n", " if isinstance(value, list):\n", " return \"\".join(value)\n", " return value\n", "\n", "\n", "def ensure_token_list(value):\n", " if isinstance(value, list):\n", " return value\n", " if not value:\n", " return []\n", " if isinstance(value, str) and value.startswith(\"<\") and value.endswith(\">\"):\n", " if \"><\" in value:\n", " parts = value[1:-1].split(\"><\")\n", " return [f\"<{part}>\" for part in parts]\n", " return [value]\n", " if isinstance(value, str):\n", " return value.split()\n", " return [str(value)]\n", "\n", "\n", "def count_tokens(value) -> int:\n", " return len(ensure_token_list(value))\n", "\n", "\n", "def split_by_hops(data):\n", " atom, twohop = [], []\n", " for item in data:\n", " token_count = count_tokens(item[\"target_text\"])\n", " if token_count == 3:\n", " atom.append(item)\n", " elif token_count == 4:\n", " twohop.append(item)\n", " return atom, twohop\n", "\n", "\n", "def maybe_sample(data):\n", " if MAX_SAMPLES is None or len(data) <= MAX_SAMPLES:\n", " return data\n", " rng = np.random.default_rng(RNG_SEED)\n", " idx = rng.choice(len(data), size=MAX_SAMPLES, replace=False)\n", " return [data[i] for i in idx]" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "class SmallTokenDictionaryTokenizer:\n", " def __init__(self, vocab_list, base_tokenizer, special_tokens_map=None):\n", " if special_tokens_map:\n", " base_tokenizer.unk_token = special_tokens_map.get(\"unk_token\", base_tokenizer.unk_token)\n", " base_tokenizer.eos_token = special_tokens_map.get(\"eos_token\", base_tokenizer.eos_token)\n", " base_tokenizer.pad_token = special_tokens_map.get(\"pad_token\", base_tokenizer.pad_token)\n", " base_tokenizer.bos_token = special_tokens_map.get(\"bos_token\", base_tokenizer.bos_token)\n", "\n", " self.unk_token = base_tokenizer.unk_token or \"\"\n", " self.eos_token = base_tokenizer.eos_token or \"\"\n", " self.pad_token = base_tokenizer.pad_token or self.eos_token\n", " self.bos_token = base_tokenizer.bos_token\n", "\n", " special_tokens = []\n", " for tok in base_tokenizer.all_special_tokens:\n", " if tok not in special_tokens:\n", " special_tokens.append(tok)\n", " for tok in [self.unk_token, self.eos_token, self.pad_token, self.bos_token]:\n", " if tok and tok not in special_tokens:\n", " special_tokens.append(tok)\n", "\n", " tokens = []\n", " for tok in special_tokens + vocab_list:\n", " if tok not in tokens:\n", " tokens.append(tok)\n", "\n", " self.small_tokens = tokens\n", " self.all_special_tokens = special_tokens\n", " self.token_to_id = {tok: i for i, tok in enumerate(tokens)}\n", " self.id_to_token = {i: tok for tok, i in self.token_to_id.items()}\n", " self.unk_token_id = self.token_to_id[self.unk_token]\n", " self.eos_token_id = self.token_to_id[self.eos_token]\n", " self.pad_token_id = self.token_to_id[self.pad_token]\n", " self.bos_token_id = self.token_to_id[self.bos_token] if self.bos_token in self.token_to_id else None\n", " self.padding_side = \"right\"\n", " self.is_small_tokenizer = True\n", "\n", " def __len__(self):\n", " return len(self.small_tokens)\n", "\n", " def _split_angle_tokens(self, text):\n", " if not text:\n", " return []\n", " if text.startswith(\"<\") and text.endswith(\">\") and \"><\" in text:\n", " parts = text[1:-1].split(\"><\")\n", " return [f\"<{part}>\" for part in parts]\n", " if text.startswith(\"<\") and text.endswith(\">\"):\n", " return [text]\n", " return text.split()\n", "\n", " def _to_tokens(self, value, is_split_into_words):\n", " if isinstance(value, list):\n", " return value\n", " if is_split_into_words:\n", " return self._split_angle_tokens(str(value))\n", " return self._split_angle_tokens(str(value))\n", "\n", " def convert_tokens_to_ids(self, token):\n", " return self.token_to_id.get(token, self.unk_token_id)\n", "\n", " def encode_tokens(self, tokens, add_special_tokens):\n", " ids = [self.convert_tokens_to_ids(tok) for tok in tokens]\n", " if add_special_tokens:\n", " if self.bos_token_id is not None:\n", " ids = [self.bos_token_id] + ids\n", " if self.eos_token_id is not None:\n", " ids = ids + [self.eos_token_id]\n", " return ids\n", "\n", " def __call__(\n", " self,\n", " inputs,\n", " is_split_into_words=False,\n", " truncation=False,\n", " max_length=None,\n", " padding=False,\n", " return_tensors=None,\n", " add_special_tokens=False,\n", " ):\n", " if isinstance(inputs, list):\n", " if is_split_into_words and inputs and all(isinstance(x, str) for x in inputs):\n", " inputs = [inputs]\n", " else:\n", " inputs = [inputs]\n", " sequences = []\n", " for item in inputs:\n", " tokens = self._to_tokens(item, is_split_into_words=is_split_into_words)\n", " ids = self.encode_tokens(tokens, add_special_tokens=add_special_tokens)\n", " if truncation and max_length is not None:\n", " ids = ids[:max_length]\n", " sequences.append(ids)\n", "\n", " if padding:\n", " if padding == \"max_length\":\n", " pad_len = max_length if max_length is not None else max(len(s) for s in sequences) if sequences else 0\n", " else:\n", " pad_len = max(len(s) for s in sequences) if sequences else 0\n", " else:\n", " pad_len = None\n", "\n", " input_ids = []\n", " attention_mask = []\n", " for seq in sequences:\n", " if pad_len is not None:\n", " pad_needed = pad_len - len(seq)\n", " if pad_needed > 0:\n", " seq = seq + [self.pad_token_id] * pad_needed\n", " elif pad_needed < 0:\n", " seq = seq[:pad_len]\n", " input_ids.append(seq)\n", " attention_mask.append([1 if tok != self.pad_token_id else 0 for tok in seq])\n", "\n", " if return_tensors == \"pt\":\n", " input_ids = torch.tensor(input_ids, dtype=torch.long)\n", " attention_mask = torch.tensor(attention_mask, dtype=torch.long)\n", " return {\"input_ids\": input_ids, \"attention_mask\": attention_mask}\n", "\n", " def decode(self, ids, skip_special_tokens=False):\n", " tokens = []\n", " for idx in ids:\n", " tok = self.id_to_token.get(int(idx), self.unk_token)\n", " if skip_special_tokens and tok in self.all_special_tokens:\n", " continue\n", " tokens.append(tok)\n", " return \"\".join(tokens)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "def load_tokenizer(model_dir, base_model_name, use_small_tokenizer, trust_remote_code=False):\n", " if use_small_tokenizer:\n", " vocab_path = model_dir / \"vocab.json\"\n", " if not vocab_path.exists():\n", " raise FileNotFoundError(f\"{vocab_path} not found for small tokenizer\")\n", " vocab_list = json.loads(vocab_path.read_text())\n", " special_map_path = model_dir / \"special_tokens_map.json\"\n", " special_map = json.loads(special_map_path.read_text()) if special_map_path.exists() else None\n", "\n", " base_tokenizer = AutoTokenizer.from_pretrained(base_model_name, trust_remote_code=trust_remote_code)\n", " if base_tokenizer.pad_token is None:\n", " base_tokenizer.pad_token = base_tokenizer.eos_token\n", " tokenizer = SmallTokenDictionaryTokenizer(vocab_list, base_tokenizer, special_tokens_map=special_map)\n", " else:\n", " tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=trust_remote_code)\n", " if tokenizer.pad_token is None:\n", " tokenizer.pad_token = tokenizer.eos_token\n", " tokenizer.padding_side = \"right\"\n", " return tokenizer\n", "\n", "\n", "def tokenizer_test(tokenizer, sample_text):\n", " print(\"Tokenizer test input:\", sample_text)\n", " raw = tokenizer(sample_text, add_special_tokens=False)\n", " raw_ids = raw[\"input_ids\"]\n", " if raw_ids and isinstance(raw_ids[0], list):\n", " raw_ids = raw_ids[0]\n", " print(\"Tokenizer raw ids:\", raw_ids)\n", " print(\"Tokenizer raw decoded:\", tokenizer.decode(raw_ids, skip_special_tokens=False))\n", " if getattr(tokenizer, \"is_small_tokenizer\", False):\n", " tokens = ensure_token_list(sample_text)\n", " split = tokenizer(tokens, is_split_into_words=True, add_special_tokens=False)\n", " split_ids = split[\"input_ids\"]\n", " if split_ids and isinstance(split_ids[0], list):\n", " split_ids = split_ids[0]\n", " print(\"Tokenizer split tokens:\", tokens)\n", " print(\"Tokenizer split ids:\", split_ids)\n", " print(\"Tokenizer split decoded:\", tokenizer.decode(split_ids, skip_special_tokens=False))" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "pad_token: <|endoftext|> pad_token_id: 0\n", "Tokenizer test input: \n", "Tokenizer raw ids: [2, 103, 4]\n", "Tokenizer raw decoded: \n", "Tokenizer split tokens: ['', '', '']\n", "Tokenizer split ids: [2, 103, 4]\n", "Tokenizer split decoded: \n" ] } ], "source": [ "# Load tokenizer + model\n", "\n", "tokenizer = load_tokenizer(MODEL_DIR, BASE_MODEL_NAME, USE_SMALL_TOKENIZER, trust_remote_code=TRUST_REMOTE_CODE)\n", "model = AutoModelForCausalLM.from_pretrained(MODEL_DIR, trust_remote_code=TRUST_REMOTE_CODE).to(DEVICE)\n", "model.eval()\n", "\n", "if tokenizer.pad_token_id is not None:\n", " model.config.pad_token_id = tokenizer.pad_token_id\n", "\n", "print(\"pad_token:\", tokenizer.pad_token, \"pad_token_id:\", tokenizer.pad_token_id)\n", "tokenizer_test(tokenizer, \"\")" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [], "source": [ "class EvalDataset(Dataset):\n", " def __init__(self, data, tokenizer, max_length):\n", " self.data = data\n", " self.tokenizer = tokenizer\n", " self.max_length = max_length\n", "\n", " def __len__(self):\n", " return len(self.data)\n", "\n", " def __getitem__(self, idx):\n", " target_value = self.data[idx][\"target_text\"]\n", " input_value = self.data[idx].get(\"input_text\", \"\")\n", " use_small = getattr(self.tokenizer, \"is_small_tokenizer\", False)\n", " target_tokens = ensure_token_list(target_value)\n", " input_tokens = ensure_token_list(input_value)\n", " target_text = \"\".join(target_tokens)\n", " input_text = \"\".join(input_tokens)\n", "\n", " if use_small:\n", " enc = self.tokenizer(\n", " target_tokens,\n", " is_split_into_words=True,\n", " truncation=True,\n", " max_length=self.max_length,\n", " return_tensors=\"pt\",\n", " padding=\"max_length\",\n", " )\n", " else:\n", " enc = self.tokenizer(\n", " target_text,\n", " truncation=True,\n", " max_length=self.max_length,\n", " return_tensors=\"pt\",\n", " padding=\"max_length\",\n", " )\n", " item = {k: v.squeeze(0) for k, v in enc.items()}\n", "\n", " if use_small:\n", " enc_input = self.tokenizer(\n", " input_tokens,\n", " is_split_into_words=True,\n", " truncation=True,\n", " max_length=self.max_length,\n", " return_tensors=\"pt\",\n", " padding=False,\n", " )\n", " else:\n", " enc_input = self.tokenizer(\n", " input_text,\n", " truncation=True,\n", " max_length=self.max_length,\n", " return_tensors=\"pt\",\n", " padding=False,\n", " )\n", " input_len = enc_input[\"input_ids\"].shape[1]\n", " item[\"input_len\"] = torch.tensor(input_len, dtype=torch.long)\n", " return item" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(500, 1250, 0, 1250, 4)" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "def infer_max_length(*datasets):\n", " max_len = 0\n", " for data in datasets:\n", " for item in data:\n", " max_len = max(max_len, count_tokens(item[\"target_text\"]))\n", " return max_len\n", "\n", "\n", "def load_data():\n", " train_data = json.loads((DATA_DIR / \"train.json\").read_text())\n", " test_data = json.loads((DATA_DIR / \"test.json\").read_text())\n", " atom_train, twohop_train = split_by_hops(train_data)\n", " atom_test, twohop_test = split_by_hops(test_data)\n", "\n", " atom_train = maybe_sample(atom_train)\n", " twohop_train = maybe_sample(twohop_train)\n", " atom_test = maybe_sample(atom_test)\n", " twohop_test = maybe_sample(twohop_test)\n", "\n", " return atom_train, twohop_train, atom_test, twohop_test\n", "\n", "\n", "atom_train, twohop_train, atom_test, twohop_test = load_data()\n", "\n", "if MAX_LENGTH is None:\n", " MAX_LENGTH = infer_max_length(atom_train, twohop_train, atom_test, twohop_test)\n", "\n", "atom_train_ds = EvalDataset(atom_train, tokenizer, MAX_LENGTH)\n", "twohop_train_ds = EvalDataset(twohop_train, tokenizer, MAX_LENGTH)\n", "atom_test_ds = EvalDataset(atom_test, tokenizer, MAX_LENGTH)\n", "twohop_test_ds = EvalDataset(twohop_test, tokenizer, MAX_LENGTH)\n", "\n", "len(atom_train_ds), len(twohop_train_ds), len(atom_test_ds), len(twohop_test_ds), MAX_LENGTH" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def _build_causal_attention_mask(hidden_states, attention_mask):\n", " batch_size, seq_len = hidden_states.shape[:2]\n", " if attention_mask is None:\n", " attention_mask = torch.ones((batch_size, seq_len), device=hidden_states.device)\n", " causal = torch.tril(torch.ones((seq_len, seq_len), device=hidden_states.device, dtype=hidden_states.dtype))\n", " causal = (1.0 - causal) * torch.finfo(hidden_states.dtype).min\n", " causal = causal[None, None, :, :]\n", " pad = attention_mask.view(batch_size, seq_len).to(dtype=hidden_states.dtype)\n", " pad = (1.0 - pad) * torch.finfo(hidden_states.dtype).min\n", " pad = pad[:, None, None, :]\n", " return causal + pad\n", "\n", "\n", "def _loop_gpt2_blocks(model, hidden_states, attention_mask):\n", " transformer = model.transformer\n", " full_mask = _build_causal_attention_mask(hidden_states, attention_mask)\n", " for block in transformer.h:\n", " outputs = block(\n", " hidden_states,\n", " layer_past=None,\n", " attention_mask=full_mask,\n", " head_mask=None,\n", " use_cache=False,\n", " output_attentions=False,\n", " )\n", " hidden_states = outputs[0]\n", " hidden_states = transformer.ln_f(hidden_states)\n", " return hidden_states\n", "\n", "\n", "def forward_looped(model, batch, loop, clean=False, clean_indexes=None, mix_ratio=0.5):\n", " input_ids = batch[\"input_ids\"]\n", " attention_mask = batch.get(\"attention_mask\", None)\n", "\n", " if not loop:\n", " outputs = model(\n", " input_ids=input_ids,\n", " attention_mask=attention_mask,\n", " output_hidden_states=True,\n", " )\n", " return outputs.logits, outputs.hidden_states[-1]\n", "\n", " outputs1 = model(\n", " input_ids=input_ids,\n", " attention_mask=attention_mask,\n", " output_hidden_states=True,\n", " )\n", " hidden_states = outputs1.hidden_states[-1]\n", "\n", " if clean and clean_indexes is not None:\n", " #replace the hidden states at clean_indexes with the decoded output embeddings\n", "\n", " if hasattr(model, \"lm_head\"):\n", " head_output = model.lm_head(hidden_states)\n", " else:\n", " head_output = model.get_output_embeddings()(hidden_states)\n", " \n", " # get the max embeddings at the clean_indexes positions\n", " for idx in clean_indexes:\n", " if idx < head_output.shape[1]:\n", " max_emb_idx = torch.argmax(head_output[:, idx, :], dim=-1)\n", " max_emb = model.get_input_embeddings()(max_emb_idx)\n", " #compute a weited sum of embeddings according to the head output (logits) \n", " head_probs = torch.softmax(head_output[:, idx, :], dim=-1)\n", " #print(\"head_probs:\", head_probs)\n", " weighted_emb = torch.matmul(head_probs, model.get_input_embeddings().weight)\n", " #print(\"weighted_emb norm:\", weighted_emb.norm(dim=-1), \"max_emb norm:\", max_emb.norm(dim=-1), \"hidden_states norm:\", hidden_states[:, idx].norm(dim=-1))\n", "\n", "\n", " hidden_states[:, idx] = mix_ratio * hidden_states[:, idx] + (1 - mix_ratio) * weighted_emb\n", "\n", " if hasattr(model, \"transformer\") and hasattr(model.transformer, \"h\"):\n", " hidden_states = _loop_gpt2_blocks(model, hidden_states, attention_mask)\n", " if hasattr(model, \"lm_head\"):\n", " logits = model.lm_head(hidden_states)\n", " else:\n", " head = model.get_output_embeddings()\n", " logits = head(hidden_states)\n", " return logits, hidden_states\n", "\n", " outputs2 = model(\n", " inputs_embeds=hidden_states,\n", " attention_mask=attention_mask,\n", " output_hidden_states=True,\n", " )\n", " return outputs2.logits, outputs2.hidden_states[-1]\n", "\n", "\n", "def decode_answer(tokenizer, input_ids, preds, attention_mask, input_len):\n", " length = int(attention_mask.sum().item())\n", " input_len = min(int(input_len), length)\n", " if length <= input_len:\n", " return None, None, \"\", \"\"\n", "\n", " answer_id = int(input_ids[input_len].item())\n", " pred_shift = preds[:-1]\n", " ans_pos = input_len - 1\n", " if ans_pos < 0:\n", " ans_pos = 0\n", " pred_id = int(pred_shift[ans_pos].item()) if ans_pos < pred_shift.shape[0] else None\n", "\n", " answer_text = tokenizer.decode([answer_id], skip_special_tokens=False) if answer_id is not None else \"\"\n", " pred_text = tokenizer.decode([pred_id], skip_special_tokens=False) if pred_id is not None else \"\"\n", " return answer_id, pred_id, answer_text, pred_text\n", "\n", "\n", "def eval_split(model, tokenizer, dataset, loop, clean=False, clean_indexes=None, test_clipped=False,mix_ratio=0.5):\n", " loader = DataLoader(dataset, batch_size=BATCH_SIZE, shuffle=False, collate_fn=default_data_collator)\n", " outputs = []\n", " reprs = []\n", " total = 0\n", " correct = 0\n", " data_idx = 0\n", "\n", " model.eval()\n", " with torch.no_grad():\n", " for batch in loader:\n", " batch = {k: v.to(DEVICE) for k, v in batch.items()}\n", " logits, hidden_states = forward_looped(model, batch, loop=loop, clean=clean, clean_indexes=clean_indexes, mix_ratio=mix_ratio)\n", " preds = torch.argmax(logits, dim=-1)\n", " batch_size_actual = preds.size(0)\n", "\n", " for i in range(batch_size_actual):\n", " input_ids = batch[\"input_ids\"][i].cpu()\n", " attn = batch.get(\"attention_mask\", torch.ones_like(input_ids)).cpu()\n", " inp_len = batch[\"input_len\"][i].cpu()\n", " answer_id, pred_id, answer_text, pred_text = decode_answer(\n", " tokenizer, input_ids, preds[i].cpu(), attn, inp_len\n", " )\n", " is_correct = (answer_id == pred_id) if answer_id is not None else False\n", " total += 1\n", " correct += int(is_correct)\n", "\n", " length = int(attn.sum().item())\n", " pred_ids = preds[i].cpu()[:length].tolist()\n", " pred_seq_text = tokenizer.decode(pred_ids, skip_special_tokens=False) if pred_ids else \"\"\n", "\n", " rep_pos = int(max(int(inp_len) - 1, 0))\n", " rep = hidden_states[i, rep_pos].detach().cpu().numpy()\n", " reprs.append(rep)\n", "\n", " item = dataset.data[data_idx] if data_idx < len(dataset.data) else {}\n", " outputs.append(\n", " {\n", " \"input_text\": item.get(\"input_text\", \"\"),\n", " \"target_text\": item.get(\"target_text\", \"\"),\n", " \"model_output\": pred_seq_text,\n", " \"target_answer\": answer_text,\n", " \"model_answer\": pred_text,\n", " \"correct\": is_correct,\n", " }\n", " )\n", " data_idx += 1\n", "\n", " acc = correct / total if total else 0.0\n", " return acc, outputs, np.stack(reprs) if reprs else np.zeros((0,))" ] }, { "cell_type": "code", "execution_count": 52, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "weighted_emb norm: tensor([1.9505, 1.9368, 1.8883, 2.0597, 1.9341, 1.9005, 1.9347, 1.8983, 1.9146,\n", " 2.0240, 1.9243, 1.8883, 1.9146, 1.9730, 1.9434, 1.9460, 2.0281, 1.9730,\n", " 2.0339, 2.0597, 1.9341, 1.7928, 2.0740, 2.0281, 2.0628, 1.9686, 2.0889,\n", " 1.9005, 2.0281, 2.0110, 1.7929, 1.8983, 2.1109, 2.0332, 1.9460, 2.0879,\n", " 2.0188, 2.0687, 2.2127, 1.9686, 1.9284, 2.0240, 1.9243, 2.1109, 2.0922,\n", " 1.7929, 1.8527, 2.0281, 1.8468, 1.9434, 2.0648, 1.9855, 1.9855, 1.9683,\n", " 1.8468, 1.8351, 1.8983, 2.1109, 2.1831, 2.0740, 1.8527, 1.9434, 2.2127,\n", " 1.9347], device='cuda:6') max_emb norm: tensor([1.9506, 1.9368, 1.8884, 2.0597, 1.9341, 1.9006, 1.9348, 1.8983, 1.9147,\n", " 2.0240, 1.9244, 1.8883, 1.9147, 1.9730, 1.9435, 1.9461, 2.0281, 1.9730,\n", " 2.0339, 2.0597, 1.9341, 1.7929, 2.0740, 2.0281, 2.0628, 1.9686, 2.0890,\n", " 1.9006, 2.0281, 2.0110, 1.7929, 1.8983, 2.1109, 2.0332, 1.9461, 2.0879,\n", " 2.0188, 2.0687, 2.2127, 1.9686, 1.9285, 2.0240, 1.9244, 2.1109, 2.0922,\n", " 1.7929, 1.8527, 2.0281, 1.8468, 1.9435, 2.0648, 1.9855, 1.9855, 1.9683,\n", " 1.8468, 1.8352, 1.8983, 2.1109, 2.1831, 2.0740, 1.8527, 1.9435, 2.2127,\n", " 1.9348], device='cuda:6') hidden_states norm: tensor([8.5838, 9.2330, 8.9448, 8.5722, 8.8419, 8.6244, 8.9301, 8.8193, 9.2052,\n", " 8.8890, 9.0875, 9.3575, 9.1257, 9.0941, 8.7737, 8.5106, 8.8419, 9.2957,\n", " 8.4879, 8.4626, 8.8889, 9.5178, 8.6034, 8.7803, 8.8271, 8.9880, 8.3400,\n", " 8.4761, 8.9141, 9.0925, 9.5628, 8.8081, 8.6815, 8.8391, 8.5543, 8.2068,\n", " 9.0686, 8.5885, 8.6997, 9.0016, 8.7859, 8.9720, 8.9797, 8.6088, 8.5235,\n", " 9.6254, 9.0150, 9.2647, 9.3807, 9.0039, 8.6343, 8.3579, 8.4759, 9.0880,\n", " 9.2731, 9.2421, 8.8184, 8.4709, 8.5765, 8.8428, 8.9305, 8.7286, 8.6212,\n", " 8.8664], device='cuda:6')\n", "weighted_emb norm: tensor([2.1376, 2.0217, 2.1831, 2.1376, 2.0332, 1.8147, 2.1048, 1.9526, 2.0889,\n", " 2.1048, 1.8884, 1.9461, 2.0889, 1.9162, 1.8928, 2.0597, 2.0339, 1.8879,\n", " 2.0648, 1.9855, 1.8527, 1.9461, 1.7928, 2.0332, 2.2127, 2.2127, 1.8468,\n", " 1.8884, 1.9152, 1.9146, 1.8883, 1.9461, 1.8468, 2.0889, 2.0110, 2.0110,\n", " 1.8527, 1.9347, 1.8352, 1.7928, 1.9526, 2.0339, 2.0922, 2.0922, 1.9505,\n", " 1.9347, 1.9434, 2.0013, 2.1831, 1.9730, 1.9434, 1.9730, 2.0013, 2.0188,\n", " 2.0240, 1.8879, 1.9243, 1.7928, 2.0740, 2.0332, 1.9526, 1.9569, 2.0597,\n", " 2.0597], device='cuda:6') max_emb norm: tensor([2.1376, 2.0217, 2.1831, 2.1376, 2.0332, 1.8148, 2.1049, 1.9527, 2.0890,\n", " 2.1049, 1.8884, 1.9461, 2.0890, 1.9163, 1.8929, 2.0597, 2.0339, 1.8879,\n", " 2.0648, 1.9855, 1.8527, 1.9461, 1.7929, 2.0332, 2.2127, 2.2127, 1.8468,\n", " 1.8884, 1.9153, 1.9147, 1.8883, 1.9461, 1.8468, 2.0890, 2.0110, 2.0110,\n", " 1.8527, 1.9348, 1.8352, 1.7929, 1.9527, 2.0339, 2.0922, 2.0922, 1.9506,\n", " 1.9348, 1.9435, 2.0014, 2.1831, 1.9730, 1.9435, 1.9730, 2.0014, 2.0188,\n", " 2.0240, 1.8879, 1.9244, 1.7929, 2.0740, 2.0332, 1.9527, 1.9569, 2.0597,\n", " 2.0597], device='cuda:6') hidden_states norm: tensor([8.7239, 8.7719, 8.6640, 8.5807, 8.9573, 8.9106, 8.6503, 8.9804, 8.5296,\n", " 8.7743, 8.8996, 8.7943, 8.5656, 8.9449, 9.0078, 8.5449, 8.5857, 9.0964,\n", " 8.6813, 8.4731, 8.8611, 8.7725, 9.3162, 8.8286, 8.6458, 8.7006, 8.9425,\n", " 8.9417, 9.2963, 9.1541, 9.6494, 8.6340, 9.2567, 8.3560, 8.9792, 8.9817,\n", " 9.0848, 8.6835, 9.2830, 9.5192, 9.2186, 8.5927, 8.4658, 8.5280, 8.7068,\n", " 8.9078, 8.9101, 8.3199, 8.5536, 8.8894, 8.7701, 9.0852, 8.3858, 9.0388,\n", " 8.8198, 9.1482, 8.8727, 9.4777, 8.5704, 8.7558, 9.1949, 8.7619, 8.6251,\n", " 8.5545], device='cuda:6')\n", "weighted_emb norm: tensor([2.0627, 2.0339, 2.1376, 2.1049, 2.1376, 1.8983, 1.8983, 2.0188, 1.9569,\n", " 2.0013, 1.9569, 2.0922, 2.0339, 2.1048, 1.8879, 1.9434, 1.9284, 2.0281,\n", " 2.0597, 1.9855, 1.9341, 2.1831, 1.8928, 1.9505, 1.9505, 2.0922, 1.8884,\n", " 2.0740, 2.0188, 1.9152, 2.0879, 1.9243, 2.0678, 2.0628, 2.0339, 1.8148,\n", " 2.0687, 2.1376, 1.9683, 1.8879, 2.0922, 1.9434, 2.0240, 1.9146, 1.8879,\n", " 2.0188, 1.9569, 1.8148, 1.9505, 1.8148, 2.0922, 2.0889, 1.7929, 1.8883,\n", " 2.0217, 1.9162, 1.9152, 2.0648, 1.9854, 2.0648, 1.8879, 1.7928, 1.9284,\n", " 1.9855], device='cuda:6') max_emb norm: tensor([2.0628, 2.0339, 2.1376, 2.1049, 2.1376, 1.8983, 1.8983, 2.0188, 1.9569,\n", " 2.0014, 1.9569, 2.0922, 2.0339, 2.1049, 1.8879, 1.9435, 1.9285, 2.0281,\n", " 2.0597, 1.9855, 1.9341, 2.1831, 1.8929, 1.9506, 1.9506, 2.0922, 1.8884,\n", " 2.0740, 2.0188, 1.9153, 2.0879, 1.9244, 2.0678, 2.0628, 2.0339, 1.8148,\n", " 2.0687, 2.1376, 1.9683, 1.8879, 2.0922, 1.9435, 2.0240, 1.9147, 1.8879,\n", " 2.0188, 1.9569, 1.8148, 1.9506, 1.8148, 2.0922, 2.0890, 1.7929, 1.8883,\n", " 2.0217, 1.9163, 1.9153, 2.0648, 1.9855, 2.0648, 1.8879, 1.7929, 1.9285,\n", " 1.9855], device='cuda:6') hidden_states norm: tensor([8.8786, 8.7225, 8.6331, 8.6638, 8.5671, 8.8285, 8.7778, 9.2130, 9.0124,\n", " 8.3271, 8.7591, 8.3275, 8.5187, 8.6523, 9.1948, 8.8147, 9.0762, 8.8583,\n", " 8.4282, 8.2914, 9.0376, 8.6971, 8.8074, 8.4478, 8.7123, 8.5889, 8.9989,\n", " 8.8158, 9.1061, 8.8972, 8.5507, 9.0024, 9.1648, 8.8267, 8.5815, 9.3547,\n", " 8.9143, 8.5156, 8.6980, 9.3020, 8.4641, 8.7604, 8.7722, 9.1926, 9.1361,\n", " 8.9867, 8.5626, 9.1334, 8.6650, 9.3948, 8.3953, 8.2370, 9.6999, 9.3355,\n", " 9.3093, 8.9958, 9.0315, 8.8003, 8.2509, 8.7905, 9.2461, 9.4967, 9.0289,\n", " 8.4386], device='cuda:6')\n", "weighted_emb norm: tensor([2.0740, 1.9341, 2.1049, 2.0331, 1.9526, 1.9162, 2.0889, 2.0678, 2.0217,\n", " 2.0339, 2.0740, 1.9368, 1.9005, 2.0740, 2.1831, 1.8928, 2.0240, 1.8879,\n", " 1.9162, 1.9284, 2.0879, 1.9505, 1.8879, 2.0240, 1.9686, 1.8148, 1.8883,\n", " 1.8527, 2.1109, 2.1376, 2.0332, 1.9162, 2.0879, 1.9162, 1.8352, 1.9146,\n", " 2.0648, 1.9686, 1.7928, 2.0922, 1.9146, 1.9569, 1.9569, 2.0740, 2.0240,\n", " 2.0597, 2.0217, 1.9434, 1.9505, 2.0879, 1.9505, 2.0240, 1.9347, 2.0597,\n", " 2.0922, 1.8983, 1.9526, 2.0879, 2.6684, 2.3811, 2.6070, 2.4038, 2.4881,\n", " 2.3855], device='cuda:6') max_emb norm: tensor([2.0740, 1.9341, 2.1049, 2.0332, 1.9527, 1.9163, 2.0890, 2.0678, 2.0217,\n", " 2.0339, 2.0740, 1.9368, 1.9006, 2.0740, 2.1831, 1.8929, 2.0240, 1.8879,\n", " 1.9163, 1.9285, 2.0879, 1.9506, 1.8879, 2.0240, 1.9686, 1.8148, 1.8883,\n", " 1.8527, 2.1109, 2.1376, 2.0332, 1.9163, 2.0879, 1.9163, 1.8352, 1.9147,\n", " 2.0648, 1.9686, 1.7929, 2.0922, 1.9147, 1.9569, 1.9569, 2.0740, 2.0240,\n", " 2.0597, 2.0217, 1.9435, 1.9506, 2.0879, 1.9506, 2.0240, 1.9348, 2.0597,\n", " 2.0922, 1.8983, 1.9527, 2.0879, 2.6684, 2.3811, 2.6070, 2.4038, 2.4881,\n", " 2.3855], device='cuda:6') hidden_states norm: tensor([ 8.7972, 8.9091, 8.7397, 8.7883, 8.9884, 9.2033, 8.5274, 9.0434,\n", " 9.0432, 8.6415, 8.6296, 9.0953, 8.5553, 8.6862, 8.5816, 8.7964,\n", " 8.9520, 9.2112, 9.0245, 8.8134, 8.2120, 8.7394, 9.3077, 9.0710,\n", " 9.0479, 9.1044, 9.3627, 9.1471, 8.5247, 8.6216, 8.9948, 9.0436,\n", " 8.0755, 9.1825, 9.4896, 9.3412, 8.8138, 9.0299, 9.4002, 8.3826,\n", " 9.2111, 8.7351, 8.5857, 8.5151, 8.8400, 8.5105, 8.9385, 8.8392,\n", " 8.4653, 8.3092, 8.6659, 8.8962, 8.8025, 8.5653, 8.3959, 8.8555,\n", " 9.1412, 8.2269, 11.1246, 11.1258, 10.6014, 10.9151, 11.3882, 10.8808],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5994, 2.5565, 2.6070, 2.5565, 2.4333, 2.4421, 2.5915, 2.4734, 2.4537,\n", " 2.5565, 2.4881, 2.6070, 2.6544, 2.6070, 2.4947, 2.5445, 2.3860, 2.6684,\n", " 2.5631, 2.3811, 2.5994, 2.5475, 2.4396, 2.4755, 2.4391, 2.4248, 2.5796,\n", " 2.4396, 2.5958, 2.3908, 2.6684, 2.3855, 2.3908, 2.1377, 2.3855, 2.4536,\n", " 2.4570, 2.6544, 2.4421, 2.5796, 2.3043, 2.3835, 2.3860, 2.5445, 2.5994,\n", " 2.6684, 2.5565, 2.4248, 2.4808, 2.5796, 2.5475, 2.5796, 2.3811, 2.4709,\n", " 2.5994, 2.4038, 2.4881, 2.5631, 2.5445, 2.1377, 2.4537, 2.5958, 2.6989,\n", " 2.5915], device='cuda:6') max_emb norm: tensor([2.5994, 2.5565, 2.6070, 2.5565, 2.4333, 2.4421, 2.5915, 2.4735, 2.4537,\n", " 2.5565, 2.4881, 2.6070, 2.6544, 2.6070, 2.4947, 2.5445, 2.3860, 2.6684,\n", " 2.5631, 2.3811, 2.5994, 2.5475, 2.4396, 2.4755, 2.4391, 2.4248, 2.5796,\n", " 2.4396, 2.5958, 2.3908, 2.6684, 2.3855, 2.3908, 2.1377, 2.3855, 2.4537,\n", " 2.4570, 2.6544, 2.4421, 2.5796, 2.3043, 2.3835, 2.3860, 2.5445, 2.5994,\n", " 2.6684, 2.5565, 2.4248, 2.4809, 2.5796, 2.5475, 2.5796, 2.3811, 2.4709,\n", " 2.5994, 2.4038, 2.4881, 2.5631, 2.5445, 2.1377, 2.4537, 2.5958, 2.6989,\n", " 2.5915], device='cuda:6') hidden_states norm: tensor([11.3943, 11.0719, 10.5559, 11.2300, 11.0787, 11.0448, 11.0147, 10.7113,\n", " 11.1404, 10.7191, 10.7661, 10.7781, 10.7571, 10.8176, 10.8521, 10.5522,\n", " 10.4943, 11.0973, 10.9016, 10.8376, 10.6600, 10.7603, 10.9776, 11.0522,\n", " 11.1010, 10.6497, 10.5766, 11.2668, 10.8719, 10.8857, 11.0816, 10.8648,\n", " 11.1348, 11.5450, 10.7421, 10.8392, 11.0414, 10.9581, 10.8079, 11.2110,\n", " 11.6792, 11.0993, 10.6150, 10.6772, 10.4414, 10.5322, 10.9392, 11.2178,\n", " 10.8782, 11.1119, 11.0609, 10.9191, 10.6786, 10.6721, 10.9862, 11.1287,\n", " 11.3053, 10.6583, 10.9028, 11.5797, 10.7509, 10.9444, 11.2357, 10.8862],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4176, 2.3908, 2.5565, 2.5247, 2.4308, 2.5631, 2.4308, 2.6248, 2.4577,\n", " 2.6070, 2.4333, 2.3835, 2.5181, 2.3431, 2.5181, 2.4860, 2.4038, 2.4734,\n", " 2.5958, 2.4570, 2.4176, 2.4537, 2.4391, 2.4333, 2.4881, 2.5565, 2.5915,\n", " 2.5475, 2.4306, 2.6070, 2.6989, 2.4577, 2.5428, 2.3620, 2.5475, 2.5914,\n", " 2.6247, 2.3908, 2.6989, 2.4881, 2.3860, 2.4248, 2.5428, 2.3996, 2.4396,\n", " 2.4537, 2.5565, 2.5706, 2.3835, 2.5181, 2.4947, 2.3996, 2.5565, 2.3996,\n", " 2.6684, 2.5631, 2.4248, 2.5428, 2.4176, 2.3855, 2.5428, 2.5706, 2.5428,\n", " 2.4308], device='cuda:6') max_emb norm: tensor([2.4176, 2.3908, 2.5565, 2.5247, 2.4308, 2.5631, 2.4308, 2.6248, 2.4578,\n", " 2.6070, 2.4333, 2.3835, 2.5181, 2.3431, 2.5181, 2.4860, 2.4038, 2.4735,\n", " 2.5958, 2.4570, 2.4176, 2.4537, 2.4391, 2.4333, 2.4881, 2.5565, 2.5915,\n", " 2.5475, 2.4306, 2.6070, 2.6989, 2.4578, 2.5428, 2.3620, 2.5475, 2.5915,\n", " 2.6248, 2.3908, 2.6989, 2.4881, 2.3860, 2.4248, 2.5428, 2.3996, 2.4396,\n", " 2.4537, 2.5565, 2.5706, 2.3835, 2.5181, 2.4947, 2.3996, 2.5565, 2.3996,\n", " 2.6684, 2.5631, 2.4248, 2.5428, 2.4176, 2.3855, 2.5428, 2.5706, 2.5428,\n", " 2.4308], device='cuda:6') hidden_states norm: tensor([10.8761, 10.7925, 10.6812, 10.5241, 10.6379, 10.8787, 11.0646, 10.6266,\n", " 10.5516, 10.9941, 11.1166, 10.9503, 11.2666, 11.3734, 10.8409, 10.8215,\n", " 10.8110, 10.6831, 10.2995, 10.8872, 11.1553, 10.6745, 10.5463, 10.9281,\n", " 11.3027, 10.9258, 10.6265, 10.6173, 10.9182, 10.5802, 10.9686, 10.6425,\n", " 10.8392, 11.2351, 11.0035, 10.5551, 10.6750, 10.8085, 10.6442, 10.8510,\n", " 10.7763, 10.7358, 10.9683, 10.3022, 10.9686, 10.9812, 10.5956, 10.3159,\n", " 10.2673, 10.7445, 10.4151, 10.3458, 10.8334, 10.7942, 10.4019, 10.5775,\n", " 11.1147, 11.1941, 11.3554, 11.1404, 11.2518, 10.9317, 11.1507, 10.6546],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.6684, 2.3908, 2.3237, 2.5958, 2.4860, 2.4860, 2.6989, 2.4748, 2.3908,\n", " 2.4248, 2.3811, 2.3996, 2.2434, 2.4748, 2.5475, 2.5914, 2.4735, 2.3620,\n", " 2.5706, 2.4308, 2.5915, 2.4755, 2.4537, 2.4755, 2.4333, 2.4537, 2.3043,\n", " 2.5706, 2.5958, 2.3043, 2.4709, 2.4308, 2.3620, 2.3620, 2.4038, 2.2434,\n", " 2.3431, 2.4038, 2.5475, 2.3811, 2.6248, 2.6684, 2.5181, 2.4860, 2.4577,\n", " 2.4735, 2.5565, 2.4570, 2.5445, 2.4709, 2.4570, 2.2434, 2.5428, 2.4735,\n", " 2.5428, 2.2932, 2.5181, 2.4860, 2.6989, 2.4176, 2.5796, 2.4306, 2.3237,\n", " 2.3043], device='cuda:6') max_emb norm: tensor([2.6684, 2.3908, 2.3237, 2.5958, 2.4860, 2.4860, 2.6989, 2.4748, 2.3908,\n", " 2.4248, 2.3811, 2.3996, 2.2434, 2.4748, 2.5475, 2.5915, 2.4735, 2.3620,\n", " 2.5706, 2.4308, 2.5915, 2.4755, 2.4537, 2.4755, 2.4333, 2.4537, 2.3043,\n", " 2.5706, 2.5958, 2.3043, 2.4709, 2.4308, 2.3620, 2.3620, 2.4038, 2.2434,\n", " 2.3431, 2.4038, 2.5475, 2.3811, 2.6248, 2.6684, 2.5181, 2.4860, 2.4578,\n", " 2.4735, 2.5565, 2.4570, 2.5445, 2.4709, 2.4570, 2.2434, 2.5428, 2.4735,\n", " 2.5428, 2.2932, 2.5181, 2.4860, 2.6989, 2.4176, 2.5796, 2.4306, 2.3237,\n", " 2.3043], device='cuda:6') hidden_states norm: tensor([11.0295, 11.0249, 11.2662, 11.0688, 11.2615, 11.3148, 10.7033, 11.0024,\n", " 10.4223, 11.3727, 10.5631, 10.8709, 10.9707, 10.6932, 11.0261, 10.9247,\n", " 11.4577, 11.0143, 10.8967, 10.9593, 10.9778, 10.7556, 10.7679, 10.8040,\n", " 10.8528, 10.6462, 11.2942, 11.2951, 10.5429, 11.4740, 10.6830, 10.6963,\n", " 10.8847, 10.9362, 11.1284, 11.1415, 11.1705, 11.0137, 10.8226, 10.8626,\n", " 10.6030, 10.8126, 11.0671, 10.9099, 10.3272, 11.6985, 10.7474, 11.0561,\n", " 11.1548, 11.0656, 10.9301, 11.1248, 11.2103, 11.0872, 10.9854, 11.0113,\n", " 11.3322, 11.0012, 11.5909, 11.1931, 11.0418, 10.4082, 11.0964, 11.6272],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5915, 2.5247, 2.4396, 2.4396, 2.3996, 2.5706, 2.5706, 2.4306, 2.1377,\n", " 2.4248, 2.6544, 2.4333, 2.6989, 2.6248, 2.4248, 2.3860, 2.6989, 2.3860,\n", " 2.4396, 2.4421, 2.5796, 2.4808, 2.5565, 2.6684, 2.4333, 2.5796, 2.4881,\n", " 2.4570, 2.2932, 2.4881, 2.3860, 2.4881, 2.4333, 2.6069, 2.4881, 2.4537,\n", " 2.3620, 2.6248, 2.5565, 2.5706, 2.4176, 2.3237, 2.4421, 2.5247, 2.3860,\n", " 2.4709, 2.4881, 2.3835, 2.4709, 2.2932, 2.4248, 2.3996],\n", " device='cuda:6') max_emb norm: tensor([2.5915, 2.5247, 2.4396, 2.4396, 2.3996, 2.5706, 2.5706, 2.4306, 2.1377,\n", " 2.4248, 2.6544, 2.4333, 2.6989, 2.6248, 2.4248, 2.3860, 2.6989, 2.3860,\n", " 2.4396, 2.4421, 2.5796, 2.4809, 2.5565, 2.6684, 2.4333, 2.5796, 2.4881,\n", " 2.4570, 2.2932, 2.4881, 2.3860, 2.4881, 2.4333, 2.6070, 2.4881, 2.4537,\n", " 2.3620, 2.6248, 2.5565, 2.5706, 2.4176, 2.3237, 2.4421, 2.5247, 2.3860,\n", " 2.4709, 2.4881, 2.3835, 2.4709, 2.2932, 2.4248, 2.3996],\n", " device='cuda:6') hidden_states norm: tensor([11.0113, 10.8660, 10.9053, 11.0236, 10.3758, 10.5419, 11.0048, 10.8584,\n", " 11.4984, 11.1566, 11.3095, 11.1694, 11.1631, 10.7808, 10.6893, 11.0956,\n", " 10.8828, 10.1521, 11.0490, 10.4916, 11.2124, 10.3251, 10.5791, 10.6141,\n", " 10.9408, 10.9725, 11.1779, 11.0268, 11.2707, 11.0422, 10.9761, 10.9267,\n", " 10.9815, 11.0282, 10.8320, 11.2570, 10.7681, 10.6581, 10.7872, 10.8653,\n", " 11.0706, 11.1968, 10.7308, 10.6589, 10.5565, 10.5929, 11.1702, 11.1265,\n", " 11.4641, 11.1386, 11.2772, 10.9056], device='cuda:6')\n", "weighted_emb norm: tensor([1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 1.9368, 1.9368, 1.9368, 1.9368,\n", " 1.9368, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 2.0597, 2.0597, 2.0597,\n", " 2.0597, 2.0597, 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 1.9005, 1.9005,\n", " 1.9005, 1.9005, 1.9005, 1.9347, 1.9347, 1.9347, 1.9347, 1.9347, 1.8983,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.9146, 1.9146, 1.9146, 1.9146, 1.9146,\n", " 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 1.9243, 1.9243, 1.9243, 1.9243,\n", " 1.9243, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 1.9146, 1.9146, 1.9146,\n", " 1.9146], device='cuda:6') max_emb norm: tensor([1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 1.9368, 1.9368, 1.9368, 1.9368,\n", " 1.9368, 1.8884, 1.8884, 1.8884, 1.8884, 1.8884, 2.0597, 2.0597, 2.0597,\n", " 2.0597, 2.0597, 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 1.9006, 1.9006,\n", " 1.9006, 1.9006, 1.9006, 1.9348, 1.9348, 1.9348, 1.9348, 1.9348, 1.8983,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.9147, 1.9147, 1.9147, 1.9147, 1.9147,\n", " 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 1.9244, 1.9244, 1.9244, 1.9244,\n", " 1.9244, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 1.9147, 1.9147, 1.9147,\n", " 1.9147], device='cuda:6') hidden_states norm: tensor([8.5838, 8.5838, 8.5838, 8.5838, 8.5838, 9.2330, 9.2330, 9.2330, 9.2330,\n", " 9.2330, 8.9448, 8.9448, 8.9448, 8.9448, 8.9448, 8.5722, 8.5722, 8.5722,\n", " 8.5722, 8.5722, 8.8419, 8.8419, 8.8419, 8.8419, 8.8419, 8.6244, 8.6244,\n", " 8.6244, 8.6244, 8.6244, 8.9301, 8.9301, 8.9301, 8.9301, 8.9301, 8.8193,\n", " 8.8193, 8.8193, 8.8193, 8.8193, 9.2052, 9.2052, 9.2052, 9.2052, 9.2052,\n", " 8.8890, 8.8890, 8.8890, 8.8890, 8.8890, 9.0875, 9.0875, 9.0875, 9.0875,\n", " 9.0875, 9.3575, 9.3575, 9.3575, 9.3575, 9.3575, 9.1257, 9.1257, 9.1257,\n", " 9.1257], device='cuda:6')\n", "weighted_emb norm: tensor([1.9146, 1.9730, 1.9730, 1.9730, 1.9730, 1.9730, 1.9434, 1.9434, 1.9434,\n", " 1.9434, 1.9434, 1.9460, 1.9460, 1.9460, 1.9460, 1.9460, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0281, 1.9730, 1.9730, 1.9730, 1.9730, 1.9730, 2.0339,\n", " 2.0339, 2.0339, 2.0339, 2.0339, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597,\n", " 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 1.7928, 1.7928, 1.7928, 1.7928,\n", " 1.7928, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 2.0281, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0628, 2.0628, 2.0628, 2.0628, 2.0628, 1.9686, 1.9686,\n", " 1.9686], device='cuda:6') max_emb norm: tensor([1.9147, 1.9730, 1.9730, 1.9730, 1.9730, 1.9730, 1.9435, 1.9435, 1.9435,\n", " 1.9435, 1.9435, 1.9461, 1.9461, 1.9461, 1.9461, 1.9461, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0281, 1.9730, 1.9730, 1.9730, 1.9730, 1.9730, 2.0339,\n", " 2.0339, 2.0339, 2.0339, 2.0339, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597,\n", " 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.7929, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 2.0281, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0628, 2.0628, 2.0628, 2.0628, 2.0628, 1.9686, 1.9686,\n", " 1.9686], device='cuda:6') hidden_states norm: tensor([9.1257, 9.0941, 9.0941, 9.0941, 9.0941, 9.0941, 8.7737, 8.7737, 8.7737,\n", " 8.7737, 8.7737, 8.5106, 8.5106, 8.5106, 8.5106, 8.5106, 8.8419, 8.8419,\n", " 8.8419, 8.8419, 8.8419, 9.2957, 9.2957, 9.2957, 9.2957, 9.2957, 8.4879,\n", " 8.4879, 8.4879, 8.4879, 8.4879, 8.4626, 8.4626, 8.4626, 8.4626, 8.4626,\n", " 8.8889, 8.8889, 8.8889, 8.8889, 8.8889, 9.5178, 9.5178, 9.5178, 9.5178,\n", " 9.5178, 8.6034, 8.6034, 8.6034, 8.6034, 8.6034, 8.7803, 8.7803, 8.7803,\n", " 8.7803, 8.7803, 8.8271, 8.8271, 8.8271, 8.8271, 8.8271, 8.9880, 8.9880,\n", " 8.9880], device='cuda:6')\n", "weighted_emb norm: tensor([1.9686, 1.9686, 2.0889, 2.0889, 2.0889, 2.0889, 2.0889, 1.9005, 1.9005,\n", " 1.9005, 1.9005, 1.9005, 2.0281, 2.0281, 2.0281, 2.0281, 2.0281, 2.0110,\n", " 2.0110, 2.0110, 2.0110, 2.0110, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 2.1109, 2.1109, 2.1109, 2.1109,\n", " 2.1109, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.9460, 1.9460, 1.9460,\n", " 1.9460, 1.9460, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879, 2.0188, 2.0188,\n", " 2.0188, 2.0188, 2.0188, 2.0687, 2.0687, 2.0687, 2.0687, 2.0687, 2.2127,\n", " 2.2127], device='cuda:6') max_emb norm: tensor([1.9686, 1.9686, 2.0890, 2.0890, 2.0890, 2.0890, 2.0890, 1.9006, 1.9006,\n", " 1.9006, 1.9006, 1.9006, 2.0281, 2.0281, 2.0281, 2.0281, 2.0281, 2.0110,\n", " 2.0110, 2.0110, 2.0110, 2.0110, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 2.1109, 2.1109, 2.1109, 2.1109,\n", " 2.1109, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.9461, 1.9461, 1.9461,\n", " 1.9461, 1.9461, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879, 2.0188, 2.0188,\n", " 2.0188, 2.0188, 2.0188, 2.0687, 2.0687, 2.0687, 2.0687, 2.0687, 2.2127,\n", " 2.2127], device='cuda:6') hidden_states norm: tensor([8.9880, 8.9880, 8.3400, 8.3400, 8.3400, 8.3400, 8.3400, 8.4761, 8.4761,\n", " 8.4761, 8.4761, 8.4761, 8.9141, 8.9141, 8.9141, 8.9141, 8.9141, 9.0925,\n", " 9.0925, 9.0925, 9.0925, 9.0925, 9.5628, 9.5628, 9.5628, 9.5628, 9.5628,\n", " 8.8081, 8.8081, 8.8081, 8.8081, 8.8081, 8.6815, 8.6815, 8.6815, 8.6815,\n", " 8.6815, 8.8391, 8.8391, 8.8391, 8.8391, 8.8391, 8.5543, 8.5543, 8.5543,\n", " 8.5543, 8.5543, 8.2068, 8.2068, 8.2068, 8.2068, 8.2068, 9.0686, 9.0686,\n", " 9.0686, 9.0686, 9.0686, 8.5885, 8.5885, 8.5885, 8.5885, 8.5885, 8.6997,\n", " 8.6997], device='cuda:6')\n", "weighted_emb norm: tensor([2.2127, 2.2127, 2.2127, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.9284,\n", " 1.9284, 1.9284, 1.9284, 1.9284, 2.0240, 2.0240, 2.0240, 2.0240, 2.0240,\n", " 1.9243, 1.9243, 1.9243, 1.9243, 1.9243, 2.1109, 2.1109, 2.1109, 2.1109,\n", " 2.1109, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 1.7929, 1.7929, 1.7929,\n", " 1.7929, 1.7929, 1.8527, 1.8527, 1.8527, 1.8527, 1.8527, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0281, 1.8468, 1.8468, 1.8468, 1.8468, 1.8468, 1.9434,\n", " 1.9434, 1.9434, 1.9434, 1.9434, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648,\n", " 1.9855], device='cuda:6') max_emb norm: tensor([2.2127, 2.2127, 2.2127, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.9285,\n", " 1.9285, 1.9285, 1.9285, 1.9285, 2.0240, 2.0240, 2.0240, 2.0240, 2.0240,\n", " 1.9244, 1.9244, 1.9244, 1.9244, 1.9244, 2.1109, 2.1109, 2.1109, 2.1109,\n", " 2.1109, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 1.7929, 1.7929, 1.7929,\n", " 1.7929, 1.7929, 1.8527, 1.8527, 1.8527, 1.8527, 1.8527, 2.0281, 2.0281,\n", " 2.0281, 2.0281, 2.0281, 1.8468, 1.8468, 1.8468, 1.8468, 1.8468, 1.9435,\n", " 1.9435, 1.9435, 1.9435, 1.9435, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648,\n", " 1.9855], device='cuda:6') hidden_states norm: tensor([8.6997, 8.6997, 8.6997, 9.0016, 9.0016, 9.0016, 9.0016, 9.0016, 8.7859,\n", " 8.7859, 8.7859, 8.7859, 8.7859, 8.9720, 8.9720, 8.9720, 8.9720, 8.9720,\n", " 8.9797, 8.9797, 8.9797, 8.9797, 8.9797, 8.6088, 8.6088, 8.6088, 8.6088,\n", " 8.6088, 8.5235, 8.5235, 8.5235, 8.5235, 8.5235, 9.6254, 9.6254, 9.6254,\n", " 9.6254, 9.6254, 9.0150, 9.0150, 9.0150, 9.0150, 9.0150, 9.2647, 9.2647,\n", " 9.2647, 9.2647, 9.2647, 9.3807, 9.3807, 9.3807, 9.3807, 9.3807, 9.0039,\n", " 9.0039, 9.0039, 9.0039, 9.0039, 8.6343, 8.6343, 8.6343, 8.6343, 8.6343,\n", " 8.3579], device='cuda:6')\n", "weighted_emb norm: tensor([1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9683, 1.9683, 1.9683, 1.9683, 1.9683, 1.8468, 1.8468, 1.8468, 1.8468,\n", " 1.8468, 1.8351, 1.8351, 1.8351, 1.8351, 1.8351, 1.8983, 1.8983, 1.8983,\n", " 1.8983, 1.8983, 2.1109, 2.1109, 2.1109, 2.1109, 2.1109, 2.1831, 2.1831,\n", " 2.1831, 2.1831, 2.1831, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 1.8527, 1.9434, 1.9434, 1.9434, 1.9434, 1.9434,\n", " 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 1.9347, 1.9347, 1.9347, 1.9347,\n", " 1.9347], device='cuda:6') max_emb norm: tensor([1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9683, 1.9683, 1.9683, 1.9683, 1.9683, 1.8468, 1.8468, 1.8468, 1.8468,\n", " 1.8468, 1.8352, 1.8352, 1.8352, 1.8352, 1.8352, 1.8983, 1.8983, 1.8983,\n", " 1.8983, 1.8983, 2.1109, 2.1109, 2.1109, 2.1109, 2.1109, 2.1831, 2.1831,\n", " 2.1831, 2.1831, 2.1831, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 1.8527, 1.9435, 1.9435, 1.9435, 1.9435, 1.9435,\n", " 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 1.9348, 1.9348, 1.9348, 1.9348,\n", " 1.9348], device='cuda:6') hidden_states norm: tensor([8.3579, 8.3579, 8.3579, 8.3579, 8.4759, 8.4759, 8.4759, 8.4759, 8.4759,\n", " 9.0880, 9.0880, 9.0880, 9.0880, 9.0880, 9.2731, 9.2731, 9.2731, 9.2731,\n", " 9.2731, 9.2421, 9.2421, 9.2421, 9.2421, 9.2421, 8.8184, 8.8184, 8.8184,\n", " 8.8184, 8.8184, 8.4709, 8.4709, 8.4709, 8.4709, 8.4709, 8.5765, 8.5765,\n", " 8.5765, 8.5765, 8.5765, 8.8428, 8.8428, 8.8428, 8.8428, 8.8428, 8.9305,\n", " 8.9305, 8.9305, 8.9305, 8.9305, 8.7286, 8.7286, 8.7286, 8.7286, 8.7286,\n", " 8.6212, 8.6212, 8.6212, 8.6212, 8.6212, 8.8664, 8.8664, 8.8664, 8.8664,\n", " 8.8664], device='cuda:6')\n", "weighted_emb norm: tensor([2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0217, 2.1831, 2.1831, 2.1831, 2.1831, 2.1831, 2.1376, 2.1376, 2.1376,\n", " 2.1376, 2.1376, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.8147, 1.8147,\n", " 1.8147, 1.8147, 1.8147, 2.1048, 2.1048, 2.1048, 2.1048, 2.1048, 1.9526,\n", " 1.9526, 1.9526, 1.9526, 1.9526, 2.0889, 2.0889, 2.0889, 2.0889, 2.0889,\n", " 2.1048, 2.1048, 2.1048, 2.1048, 2.1048, 1.8884, 1.8884, 1.8884, 1.8884,\n", " 1.8884, 1.9461, 1.9461, 1.9461, 1.9461, 1.9461, 2.0889, 2.0889, 2.0889,\n", " 2.0889], device='cuda:6') max_emb norm: tensor([2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0217, 2.1831, 2.1831, 2.1831, 2.1831, 2.1831, 2.1376, 2.1376, 2.1376,\n", " 2.1376, 2.1376, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.8148, 1.8148,\n", " 1.8148, 1.8148, 1.8148, 2.1049, 2.1049, 2.1049, 2.1049, 2.1049, 1.9527,\n", " 1.9527, 1.9527, 1.9527, 1.9527, 2.0890, 2.0890, 2.0890, 2.0890, 2.0890,\n", " 2.1049, 2.1049, 2.1049, 2.1049, 2.1049, 1.8884, 1.8884, 1.8884, 1.8884,\n", " 1.8884, 1.9461, 1.9461, 1.9461, 1.9461, 1.9461, 2.0890, 2.0890, 2.0890,\n", " 2.0890], device='cuda:6') hidden_states norm: tensor([8.7239, 8.7239, 8.7239, 8.7239, 8.7239, 8.7719, 8.7719, 8.7719, 8.7719,\n", " 8.7719, 8.6640, 8.6640, 8.6640, 8.6640, 8.6640, 8.5807, 8.5807, 8.5807,\n", " 8.5807, 8.5807, 8.9573, 8.9573, 8.9573, 8.9573, 8.9573, 8.9106, 8.9106,\n", " 8.9106, 8.9106, 8.9106, 8.6503, 8.6503, 8.6503, 8.6503, 8.6503, 8.9804,\n", " 8.9804, 8.9804, 8.9804, 8.9804, 8.5296, 8.5296, 8.5296, 8.5296, 8.5296,\n", " 8.7743, 8.7743, 8.7743, 8.7743, 8.7743, 8.8996, 8.8996, 8.8996, 8.8996,\n", " 8.8996, 8.7943, 8.7943, 8.7943, 8.7943, 8.7943, 8.5656, 8.5656, 8.5656,\n", " 8.5656], device='cuda:6')\n", "weighted_emb norm: tensor([2.0889, 1.9162, 1.9162, 1.9162, 1.9162, 1.9162, 1.8928, 1.8928, 1.8928,\n", " 1.8928, 1.8928, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0339, 2.0339,\n", " 2.0339, 2.0339, 2.0339, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0648,\n", " 2.0648, 2.0648, 2.0648, 2.0648, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.8527, 1.8527, 1.8527, 1.8527, 1.8527, 1.9461, 1.9461, 1.9461, 1.9461,\n", " 1.9461, 1.7928, 1.7928, 1.7928, 1.7928, 1.7928, 2.0332, 2.0332, 2.0332,\n", " 2.0332, 2.0332, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127,\n", " 2.2127], device='cuda:6') max_emb norm: tensor([2.0890, 1.9163, 1.9163, 1.9163, 1.9163, 1.9163, 1.8929, 1.8929, 1.8929,\n", " 1.8929, 1.8929, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0339, 2.0339,\n", " 2.0339, 2.0339, 2.0339, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0648,\n", " 2.0648, 2.0648, 2.0648, 2.0648, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.8527, 1.8527, 1.8527, 1.8527, 1.8527, 1.9461, 1.9461, 1.9461, 1.9461,\n", " 1.9461, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929, 2.0332, 2.0332, 2.0332,\n", " 2.0332, 2.0332, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127, 2.2127,\n", " 2.2127], device='cuda:6') hidden_states norm: tensor([8.5656, 8.9449, 8.9449, 8.9449, 8.9449, 8.9449, 9.0078, 9.0078, 9.0078,\n", " 9.0078, 9.0078, 8.5449, 8.5449, 8.5449, 8.5449, 8.5449, 8.5857, 8.5857,\n", " 8.5857, 8.5857, 8.5857, 9.0964, 9.0964, 9.0964, 9.0964, 9.0964, 8.6813,\n", " 8.6813, 8.6813, 8.6813, 8.6813, 8.4731, 8.4731, 8.4731, 8.4731, 8.4731,\n", " 8.8611, 8.8611, 8.8611, 8.8611, 8.8611, 8.7725, 8.7725, 8.7725, 8.7725,\n", " 8.7725, 9.3162, 9.3162, 9.3162, 9.3162, 9.3162, 8.8286, 8.8286, 8.8286,\n", " 8.8286, 8.8286, 8.6458, 8.6458, 8.6458, 8.6458, 8.6458, 8.7006, 8.7006,\n", " 8.7006], device='cuda:6')\n", "weighted_emb norm: tensor([2.2127, 2.2127, 1.8468, 1.8468, 1.8468, 1.8468, 1.8468, 1.8884, 1.8884,\n", " 1.8884, 1.8884, 1.8884, 1.9152, 1.9152, 1.9152, 1.9152, 1.9152, 1.9146,\n", " 1.9146, 1.9146, 1.9146, 1.9146, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883,\n", " 1.9461, 1.9461, 1.9461, 1.9461, 1.9461, 1.8468, 1.8468, 1.8468, 1.8468,\n", " 1.8468, 2.0889, 2.0889, 2.0889, 2.0889, 2.0889, 2.0110, 2.0110, 2.0110,\n", " 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 1.8527, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 1.9347, 1.9347, 1.9347, 1.9347, 1.9347, 1.8352,\n", " 1.8352], device='cuda:6') max_emb norm: tensor([2.2127, 2.2127, 1.8468, 1.8468, 1.8468, 1.8468, 1.8468, 1.8884, 1.8884,\n", " 1.8884, 1.8884, 1.8884, 1.9153, 1.9153, 1.9153, 1.9153, 1.9153, 1.9147,\n", " 1.9147, 1.9147, 1.9147, 1.9147, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883,\n", " 1.9461, 1.9461, 1.9461, 1.9461, 1.9461, 1.8468, 1.8468, 1.8468, 1.8468,\n", " 1.8468, 2.0890, 2.0890, 2.0890, 2.0890, 2.0890, 2.0110, 2.0110, 2.0110,\n", " 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 2.0110, 1.8527, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 1.9348, 1.9348, 1.9348, 1.9348, 1.9348, 1.8352,\n", " 1.8352], device='cuda:6') hidden_states norm: tensor([8.7006, 8.7006, 8.9425, 8.9425, 8.9425, 8.9425, 8.9425, 8.9417, 8.9417,\n", " 8.9417, 8.9417, 8.9417, 9.2963, 9.2963, 9.2963, 9.2963, 9.2963, 9.1541,\n", " 9.1541, 9.1541, 9.1541, 9.1541, 9.6494, 9.6494, 9.6494, 9.6494, 9.6494,\n", " 8.6340, 8.6340, 8.6340, 8.6340, 8.6340, 9.2567, 9.2567, 9.2567, 9.2567,\n", " 9.2567, 8.3560, 8.3560, 8.3560, 8.3560, 8.3560, 8.9792, 8.9792, 8.9792,\n", " 8.9792, 8.9792, 8.9817, 8.9817, 8.9817, 8.9817, 8.9817, 9.0848, 9.0848,\n", " 9.0848, 9.0848, 9.0848, 8.6835, 8.6835, 8.6835, 8.6835, 8.6835, 9.2830,\n", " 9.2830], device='cuda:6')\n", "weighted_emb norm: tensor([1.8352, 1.8352, 1.8352, 1.7928, 1.7928, 1.7928, 1.7928, 1.7928, 1.9526,\n", " 1.9526, 1.9526, 1.9526, 1.9526, 2.0339, 2.0339, 2.0339, 2.0339, 2.0339,\n", " 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0922, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 1.9347, 1.9347, 1.9347,\n", " 1.9347, 1.9347, 1.9434, 1.9434, 1.9434, 1.9434, 1.9434, 2.0013, 2.0013,\n", " 2.0013, 2.0013, 2.0013, 2.1831, 2.1831, 2.1831, 2.1831, 2.1831, 1.9730,\n", " 1.9730, 1.9730, 1.9730, 1.9730, 1.9434, 1.9434, 1.9434, 1.9434, 1.9434,\n", " 1.9730], device='cuda:6') max_emb norm: tensor([1.8352, 1.8352, 1.8352, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929, 1.9527,\n", " 1.9527, 1.9527, 1.9527, 1.9527, 2.0339, 2.0339, 2.0339, 2.0339, 2.0339,\n", " 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0922, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 1.9348, 1.9348, 1.9348,\n", " 1.9348, 1.9348, 1.9435, 1.9435, 1.9435, 1.9435, 1.9435, 2.0014, 2.0014,\n", " 2.0014, 2.0014, 2.0014, 2.1831, 2.1831, 2.1831, 2.1831, 2.1831, 1.9730,\n", " 1.9730, 1.9730, 1.9730, 1.9730, 1.9435, 1.9435, 1.9435, 1.9435, 1.9435,\n", " 1.9730], device='cuda:6') hidden_states norm: tensor([9.2830, 9.2830, 9.2830, 9.5192, 9.5192, 9.5192, 9.5192, 9.5192, 9.2186,\n", " 9.2186, 9.2186, 9.2186, 9.2186, 8.5927, 8.5927, 8.5927, 8.5927, 8.5927,\n", " 8.4658, 8.4658, 8.4658, 8.4658, 8.4658, 8.5280, 8.5280, 8.5280, 8.5280,\n", " 8.5280, 8.7068, 8.7068, 8.7068, 8.7068, 8.7068, 8.9078, 8.9078, 8.9078,\n", " 8.9078, 8.9078, 8.9101, 8.9101, 8.9101, 8.9101, 8.9101, 8.3199, 8.3199,\n", " 8.3199, 8.3199, 8.3199, 8.5536, 8.5536, 8.5536, 8.5536, 8.5536, 8.8894,\n", " 8.8894, 8.8894, 8.8894, 8.8894, 8.7701, 8.7701, 8.7701, 8.7701, 8.7701,\n", " 9.0852], device='cuda:6')\n", "weighted_emb norm: tensor([1.9730, 1.9730, 1.9730, 1.9730, 2.0013, 2.0013, 2.0013, 2.0013, 2.0013,\n", " 2.0188, 2.0188, 2.0188, 2.0188, 2.0188, 2.0240, 2.0240, 2.0240, 2.0240,\n", " 2.0240, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 1.9243, 1.9243, 1.9243,\n", " 1.9243, 1.9243, 1.7928, 1.7928, 1.7928, 1.7928, 1.7928, 2.0740, 2.0740,\n", " 2.0740, 2.0740, 2.0740, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.9526,\n", " 1.9526, 1.9526, 1.9526, 1.9526, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597,\n", " 2.0597], device='cuda:6') max_emb norm: tensor([1.9730, 1.9730, 1.9730, 1.9730, 2.0014, 2.0014, 2.0014, 2.0014, 2.0014,\n", " 2.0188, 2.0188, 2.0188, 2.0188, 2.0188, 2.0240, 2.0240, 2.0240, 2.0240,\n", " 2.0240, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 1.9244, 1.9244, 1.9244,\n", " 1.9244, 1.9244, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929, 2.0740, 2.0740,\n", " 2.0740, 2.0740, 2.0740, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332, 1.9527,\n", " 1.9527, 1.9527, 1.9527, 1.9527, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0597,\n", " 2.0597], device='cuda:6') hidden_states norm: tensor([9.0852, 9.0852, 9.0852, 9.0852, 8.3858, 8.3858, 8.3858, 8.3858, 8.3858,\n", " 9.0388, 9.0388, 9.0388, 9.0388, 9.0388, 8.8198, 8.8198, 8.8198, 8.8198,\n", " 8.8198, 9.1482, 9.1482, 9.1482, 9.1482, 9.1482, 8.8727, 8.8727, 8.8727,\n", " 8.8727, 8.8727, 9.4777, 9.4777, 9.4777, 9.4777, 9.4777, 8.5704, 8.5704,\n", " 8.5704, 8.5704, 8.5704, 8.7558, 8.7558, 8.7558, 8.7558, 8.7558, 9.1949,\n", " 9.1949, 9.1949, 9.1949, 9.1949, 8.7619, 8.7619, 8.7619, 8.7619, 8.7619,\n", " 8.6251, 8.6251, 8.6251, 8.6251, 8.6251, 8.5545, 8.5545, 8.5545, 8.5545,\n", " 8.5545], device='cuda:6')\n", "weighted_emb norm: tensor([2.0627, 2.0627, 2.0627, 2.0627, 2.0627, 2.0339, 2.0339, 2.0339, 2.0339,\n", " 2.0339, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 2.1049, 2.1049, 2.1049,\n", " 2.1049, 2.1049, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 1.8983, 1.8983,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 2.0188,\n", " 2.0188, 2.0188, 2.0188, 2.0188, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 2.0013, 2.0013, 2.0013, 2.0013, 2.0013, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 1.9569, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0339, 2.0339, 2.0339,\n", " 2.0339], device='cuda:6') max_emb norm: tensor([2.0628, 2.0628, 2.0628, 2.0628, 2.0628, 2.0339, 2.0339, 2.0339, 2.0339,\n", " 2.0339, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 2.1049, 2.1049, 2.1049,\n", " 2.1049, 2.1049, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 1.8983, 1.8983,\n", " 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 2.0188,\n", " 2.0188, 2.0188, 2.0188, 2.0188, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 2.0014, 2.0014, 2.0014, 2.0014, 2.0014, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 1.9569, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 2.0339, 2.0339, 2.0339,\n", " 2.0339], device='cuda:6') hidden_states norm: tensor([8.8786, 8.8786, 8.8786, 8.8786, 8.8786, 8.7225, 8.7225, 8.7225, 8.7225,\n", " 8.7225, 8.6331, 8.6331, 8.6331, 8.6331, 8.6331, 8.6638, 8.6638, 8.6638,\n", " 8.6638, 8.6638, 8.5671, 8.5671, 8.5671, 8.5671, 8.5671, 8.8285, 8.8285,\n", " 8.8285, 8.8285, 8.8285, 8.7778, 8.7778, 8.7778, 8.7778, 8.7778, 9.2130,\n", " 9.2130, 9.2130, 9.2130, 9.2130, 9.0124, 9.0124, 9.0124, 9.0124, 9.0124,\n", " 8.3271, 8.3271, 8.3271, 8.3271, 8.3271, 8.7591, 8.7591, 8.7591, 8.7591,\n", " 8.7591, 8.3275, 8.3275, 8.3275, 8.3275, 8.3275, 8.5187, 8.5187, 8.5187,\n", " 8.5187], device='cuda:6')\n", "weighted_emb norm: tensor([2.0339, 2.1048, 2.1048, 2.1048, 2.1048, 2.1048, 1.8879, 1.8879, 1.8879,\n", " 1.8879, 1.8879, 1.9434, 1.9434, 1.9434, 1.9434, 1.9434, 1.9284, 1.9284,\n", " 1.9284, 1.9284, 1.9284, 2.0281, 2.0281, 2.0281, 2.0281, 2.0281, 2.0597,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 2.1831, 2.1831, 2.1831, 2.1831,\n", " 2.1831, 1.8928, 1.8928, 1.8928, 1.8928, 1.8928, 1.9505, 1.9505, 1.9505,\n", " 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 2.0922, 2.0922,\n", " 2.0922], device='cuda:6') max_emb norm: tensor([2.0339, 2.1049, 2.1049, 2.1049, 2.1049, 2.1049, 1.8879, 1.8879, 1.8879,\n", " 1.8879, 1.8879, 1.9435, 1.9435, 1.9435, 1.9435, 1.9435, 1.9285, 1.9285,\n", " 1.9285, 1.9285, 1.9285, 2.0281, 2.0281, 2.0281, 2.0281, 2.0281, 2.0597,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 1.9855, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9341, 1.9341, 1.9341, 1.9341, 1.9341, 2.1831, 2.1831, 2.1831, 2.1831,\n", " 2.1831, 1.8929, 1.8929, 1.8929, 1.8929, 1.8929, 1.9506, 1.9506, 1.9506,\n", " 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 2.0922, 2.0922,\n", " 2.0922], device='cuda:6') hidden_states norm: tensor([8.5187, 8.6523, 8.6523, 8.6523, 8.6523, 8.6523, 9.1948, 9.1948, 9.1948,\n", " 9.1948, 9.1948, 8.8147, 8.8147, 8.8147, 8.8147, 8.8147, 9.0762, 9.0762,\n", " 9.0762, 9.0762, 9.0762, 8.8583, 8.8583, 8.8583, 8.8583, 8.8583, 8.4282,\n", " 8.4282, 8.4282, 8.4282, 8.4282, 8.2914, 8.2914, 8.2914, 8.2914, 8.2914,\n", " 9.0376, 9.0376, 9.0376, 9.0376, 9.0376, 8.6971, 8.6971, 8.6971, 8.6971,\n", " 8.6971, 8.8074, 8.8074, 8.8074, 8.8074, 8.8074, 8.4478, 8.4478, 8.4478,\n", " 8.4478, 8.4478, 8.7123, 8.7123, 8.7123, 8.7123, 8.7123, 8.5889, 8.5889,\n", " 8.5889], device='cuda:6')\n", "weighted_emb norm: tensor([2.0922, 2.0922, 1.8884, 1.8884, 1.8884, 1.8884, 1.8884, 2.0740, 2.0740,\n", " 2.0740, 2.0740, 2.0740, 2.0188, 2.0188, 2.0188, 2.0188, 2.0188, 1.9152,\n", " 1.9152, 1.9152, 1.9152, 1.9152, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879,\n", " 1.9243, 1.9243, 1.9243, 1.9243, 1.9243, 2.0678, 2.0678, 2.0678, 2.0678,\n", " 2.0678, 2.0628, 2.0628, 2.0628, 2.0628, 2.0628, 2.0339, 2.0339, 2.0339,\n", " 2.0339, 2.0339, 1.8148, 1.8148, 1.8148, 1.8148, 1.8148, 2.0687, 2.0687,\n", " 2.0687, 2.0687, 2.0687, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 1.9683,\n", " 1.9683], device='cuda:6') max_emb norm: tensor([2.0922, 2.0922, 1.8884, 1.8884, 1.8884, 1.8884, 1.8884, 2.0740, 2.0740,\n", " 2.0740, 2.0740, 2.0740, 2.0188, 2.0188, 2.0188, 2.0188, 2.0188, 1.9153,\n", " 1.9153, 1.9153, 1.9153, 1.9153, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879,\n", " 1.9244, 1.9244, 1.9244, 1.9244, 1.9244, 2.0678, 2.0678, 2.0678, 2.0678,\n", " 2.0678, 2.0628, 2.0628, 2.0628, 2.0628, 2.0628, 2.0339, 2.0339, 2.0339,\n", " 2.0339, 2.0339, 1.8148, 1.8148, 1.8148, 1.8148, 1.8148, 2.0687, 2.0687,\n", " 2.0687, 2.0687, 2.0687, 2.1376, 2.1376, 2.1376, 2.1376, 2.1376, 1.9683,\n", " 1.9683], device='cuda:6') hidden_states norm: tensor([8.5889, 8.5889, 8.9989, 8.9989, 8.9989, 8.9989, 8.9989, 8.8158, 8.8158,\n", " 8.8158, 8.8158, 8.8158, 9.1061, 9.1061, 9.1061, 9.1061, 9.1061, 8.8972,\n", " 8.8972, 8.8972, 8.8972, 8.8972, 8.5507, 8.5507, 8.5507, 8.5507, 8.5507,\n", " 9.0024, 9.0024, 9.0024, 9.0024, 9.0024, 9.1648, 9.1648, 9.1648, 9.1648,\n", " 9.1648, 8.8267, 8.8267, 8.8267, 8.8267, 8.8267, 8.5815, 8.5815, 8.5815,\n", " 8.5815, 8.5815, 9.3547, 9.3547, 9.3547, 9.3547, 9.3547, 8.9143, 8.9143,\n", " 8.9143, 8.9143, 8.9143, 8.5156, 8.5156, 8.5156, 8.5156, 8.5156, 8.6980,\n", " 8.6980], device='cuda:6')\n", "weighted_emb norm: tensor([1.9683, 1.9683, 1.9683, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0922,\n", " 2.0922, 2.0922, 2.0922, 2.0922, 1.9434, 1.9434, 1.9434, 1.9434, 1.9434,\n", " 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 1.9146, 1.9146, 1.9146, 1.9146,\n", " 1.9146, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0188, 2.0188, 2.0188,\n", " 2.0188, 2.0188, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569, 1.8148, 1.8148,\n", " 1.8148, 1.8148, 1.8148, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 1.8148,\n", " 1.8148, 1.8148, 1.8148, 1.8148, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0889], device='cuda:6') max_emb norm: tensor([1.9683, 1.9683, 1.9683, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0922,\n", " 2.0922, 2.0922, 2.0922, 2.0922, 1.9435, 1.9435, 1.9435, 1.9435, 1.9435,\n", " 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 1.9147, 1.9147, 1.9147, 1.9147,\n", " 1.9147, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0188, 2.0188, 2.0188,\n", " 2.0188, 2.0188, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569, 1.8148, 1.8148,\n", " 1.8148, 1.8148, 1.8148, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 1.8148,\n", " 1.8148, 1.8148, 1.8148, 1.8148, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0890], device='cuda:6') hidden_states norm: tensor([8.6980, 8.6980, 8.6980, 9.3020, 9.3020, 9.3020, 9.3020, 9.3020, 8.4641,\n", " 8.4641, 8.4641, 8.4641, 8.4641, 8.7604, 8.7604, 8.7604, 8.7604, 8.7604,\n", " 8.7722, 8.7722, 8.7722, 8.7722, 8.7722, 9.1926, 9.1926, 9.1926, 9.1926,\n", " 9.1926, 9.1361, 9.1361, 9.1361, 9.1361, 9.1361, 8.9867, 8.9867, 8.9867,\n", " 8.9867, 8.9867, 8.5626, 8.5626, 8.5626, 8.5626, 8.5626, 9.1334, 9.1334,\n", " 9.1334, 9.1334, 9.1334, 8.6650, 8.6650, 8.6650, 8.6650, 8.6650, 9.3948,\n", " 9.3948, 9.3948, 9.3948, 9.3948, 8.3953, 8.3953, 8.3953, 8.3953, 8.3953,\n", " 8.2370], device='cuda:6')\n", "weighted_emb norm: tensor([2.0889, 2.0889, 2.0889, 2.0889, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0217, 1.9162, 1.9162, 1.9162, 1.9162, 1.9162, 1.9152, 1.9152, 1.9152,\n", " 1.9152, 1.9152, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648, 1.9854, 1.9854,\n", " 1.9854, 1.9854, 1.9854, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648, 1.8879,\n", " 1.8879, 1.8879, 1.8879, 1.8879, 1.7928, 1.7928, 1.7928, 1.7928, 1.7928,\n", " 1.9284, 1.9284, 1.9284, 1.9284, 1.9284, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9855], device='cuda:6') max_emb norm: tensor([2.0890, 2.0890, 2.0890, 2.0890, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0217, 1.9163, 1.9163, 1.9163, 1.9163, 1.9163, 1.9153, 1.9153, 1.9153,\n", " 1.9153, 1.9153, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648, 1.9855, 1.9855,\n", " 1.9855, 1.9855, 1.9855, 2.0648, 2.0648, 2.0648, 2.0648, 2.0648, 1.8879,\n", " 1.8879, 1.8879, 1.8879, 1.8879, 1.7929, 1.7929, 1.7929, 1.7929, 1.7929,\n", " 1.9285, 1.9285, 1.9285, 1.9285, 1.9285, 1.9855, 1.9855, 1.9855, 1.9855,\n", " 1.9855], device='cuda:6') hidden_states norm: tensor([8.2370, 8.2370, 8.2370, 8.2370, 9.6999, 9.6999, 9.6999, 9.6999, 9.6999,\n", " 9.3355, 9.3355, 9.3355, 9.3355, 9.3355, 9.3093, 9.3093, 9.3093, 9.3093,\n", " 9.3093, 8.9958, 8.9958, 8.9958, 8.9958, 8.9958, 9.0315, 9.0315, 9.0315,\n", " 9.0315, 9.0315, 8.8003, 8.8003, 8.8003, 8.8003, 8.8003, 8.2509, 8.2509,\n", " 8.2509, 8.2509, 8.2509, 8.7905, 8.7905, 8.7905, 8.7905, 8.7905, 9.2461,\n", " 9.2461, 9.2461, 9.2461, 9.2461, 9.4967, 9.4967, 9.4967, 9.4967, 9.4967,\n", " 9.0289, 9.0289, 9.0289, 9.0289, 9.0289, 8.4386, 8.4386, 8.4386, 8.4386,\n", " 8.4386], device='cuda:6')\n", "weighted_emb norm: tensor([2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 1.9341, 1.9341, 1.9341, 1.9341,\n", " 1.9341, 2.1049, 2.1049, 2.1049, 2.1049, 2.1049, 2.0331, 2.0331, 2.0331,\n", " 2.0331, 2.0331, 1.9526, 1.9526, 1.9526, 1.9526, 1.9526, 1.9162, 1.9162,\n", " 1.9162, 1.9162, 1.9162, 2.0889, 2.0889, 2.0889, 2.0889, 2.0889, 2.0678,\n", " 2.0678, 2.0678, 2.0678, 2.0678, 2.0217, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0339, 2.0339, 2.0339, 2.0339, 2.0339, 2.0740, 2.0740, 2.0740, 2.0740,\n", " 2.0740, 1.9368, 1.9368, 1.9368, 1.9368, 1.9368, 1.9005, 1.9005, 1.9005,\n", " 1.9005], device='cuda:6') max_emb norm: tensor([2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 1.9341, 1.9341, 1.9341, 1.9341,\n", " 1.9341, 2.1049, 2.1049, 2.1049, 2.1049, 2.1049, 2.0332, 2.0332, 2.0332,\n", " 2.0332, 2.0332, 1.9527, 1.9527, 1.9527, 1.9527, 1.9527, 1.9163, 1.9163,\n", " 1.9163, 1.9163, 1.9163, 2.0890, 2.0890, 2.0890, 2.0890, 2.0890, 2.0678,\n", " 2.0678, 2.0678, 2.0678, 2.0678, 2.0217, 2.0217, 2.0217, 2.0217, 2.0217,\n", " 2.0339, 2.0339, 2.0339, 2.0339, 2.0339, 2.0740, 2.0740, 2.0740, 2.0740,\n", " 2.0740, 1.9368, 1.9368, 1.9368, 1.9368, 1.9368, 1.9006, 1.9006, 1.9006,\n", " 1.9006], device='cuda:6') hidden_states norm: tensor([8.7972, 8.7972, 8.7972, 8.7972, 8.7972, 8.9091, 8.9091, 8.9091, 8.9091,\n", " 8.9091, 8.7397, 8.7397, 8.7397, 8.7397, 8.7397, 8.7883, 8.7883, 8.7883,\n", " 8.7883, 8.7883, 8.9884, 8.9884, 8.9884, 8.9884, 8.9884, 9.2033, 9.2033,\n", " 9.2033, 9.2033, 9.2033, 8.5274, 8.5274, 8.5274, 8.5274, 8.5274, 9.0434,\n", " 9.0434, 9.0434, 9.0434, 9.0434, 9.0432, 9.0432, 9.0432, 9.0432, 9.0432,\n", " 8.6415, 8.6415, 8.6415, 8.6415, 8.6415, 8.6296, 8.6296, 8.6296, 8.6296,\n", " 8.6296, 9.0953, 9.0953, 9.0953, 9.0953, 9.0953, 8.5553, 8.5553, 8.5553,\n", " 8.5553], device='cuda:6')\n", "weighted_emb norm: tensor([1.9005, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 2.1831, 2.1831, 2.1831,\n", " 2.1831, 2.1831, 1.8928, 1.8928, 1.8928, 1.8928, 1.8928, 2.0240, 2.0240,\n", " 2.0240, 2.0240, 2.0240, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 1.9162,\n", " 1.9162, 1.9162, 1.9162, 1.9162, 1.9284, 1.9284, 1.9284, 1.9284, 1.9284,\n", " 2.0879, 2.0879, 2.0879, 2.0879, 2.0879, 1.9505, 1.9505, 1.9505, 1.9505,\n", " 1.9505, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0240, 2.0240, 2.0240,\n", " 2.0240, 2.0240, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.8148, 1.8148,\n", " 1.8148], device='cuda:6') max_emb norm: tensor([1.9006, 2.0740, 2.0740, 2.0740, 2.0740, 2.0740, 2.1831, 2.1831, 2.1831,\n", " 2.1831, 2.1831, 1.8929, 1.8929, 1.8929, 1.8929, 1.8929, 2.0240, 2.0240,\n", " 2.0240, 2.0240, 2.0240, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 1.9163,\n", " 1.9163, 1.9163, 1.9163, 1.9163, 1.9285, 1.9285, 1.9285, 1.9285, 1.9285,\n", " 2.0879, 2.0879, 2.0879, 2.0879, 2.0879, 1.9506, 1.9506, 1.9506, 1.9506,\n", " 1.9506, 1.8879, 1.8879, 1.8879, 1.8879, 1.8879, 2.0240, 2.0240, 2.0240,\n", " 2.0240, 2.0240, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.8148, 1.8148,\n", " 1.8148], device='cuda:6') hidden_states norm: tensor([8.5553, 8.6862, 8.6862, 8.6862, 8.6862, 8.6862, 8.5816, 8.5816, 8.5816,\n", " 8.5816, 8.5816, 8.7964, 8.7964, 8.7964, 8.7964, 8.7964, 8.9520, 8.9520,\n", " 8.9520, 8.9520, 8.9520, 9.2112, 9.2112, 9.2112, 9.2112, 9.2112, 9.0245,\n", " 9.0245, 9.0245, 9.0245, 9.0245, 8.8134, 8.8134, 8.8134, 8.8134, 8.8134,\n", " 8.2120, 8.2120, 8.2120, 8.2120, 8.2120, 8.7394, 8.7394, 8.7394, 8.7394,\n", " 8.7394, 9.3077, 9.3077, 9.3077, 9.3077, 9.3077, 9.0710, 9.0710, 9.0710,\n", " 9.0710, 9.0710, 9.0479, 9.0479, 9.0479, 9.0479, 9.0479, 9.1044, 9.1044,\n", " 9.1044], device='cuda:6')\n", "weighted_emb norm: tensor([1.8148, 1.8148, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 1.8527, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 2.1109, 2.1109, 2.1109, 2.1109, 2.1109, 2.1376,\n", " 2.1376, 2.1376, 2.1376, 2.1376, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332,\n", " 1.9162, 1.9162, 1.9162, 1.9162, 1.9162, 2.0879, 2.0879, 2.0879, 2.0879,\n", " 2.0879, 1.9162, 1.9162, 1.9162, 1.9162, 1.9162, 1.8352, 1.8352, 1.8352,\n", " 1.8352, 1.8352, 1.9146, 1.9146, 1.9146, 1.9146, 1.9146, 2.0648, 2.0648,\n", " 2.0648, 2.0648, 2.0648, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.7928,\n", " 1.7928], device='cuda:6') max_emb norm: tensor([1.8148, 1.8148, 1.8883, 1.8883, 1.8883, 1.8883, 1.8883, 1.8527, 1.8527,\n", " 1.8527, 1.8527, 1.8527, 2.1109, 2.1109, 2.1109, 2.1109, 2.1109, 2.1376,\n", " 2.1376, 2.1376, 2.1376, 2.1376, 2.0332, 2.0332, 2.0332, 2.0332, 2.0332,\n", " 1.9163, 1.9163, 1.9163, 1.9163, 1.9163, 2.0879, 2.0879, 2.0879, 2.0879,\n", " 2.0879, 1.9163, 1.9163, 1.9163, 1.9163, 1.9163, 1.8352, 1.8352, 1.8352,\n", " 1.8352, 1.8352, 1.9147, 1.9147, 1.9147, 1.9147, 1.9147, 2.0648, 2.0648,\n", " 2.0648, 2.0648, 2.0648, 1.9686, 1.9686, 1.9686, 1.9686, 1.9686, 1.7929,\n", " 1.7929], device='cuda:6') hidden_states norm: tensor([9.1044, 9.1044, 9.3627, 9.3627, 9.3627, 9.3627, 9.3627, 9.1471, 9.1471,\n", " 9.1471, 9.1471, 9.1471, 8.5247, 8.5247, 8.5247, 8.5247, 8.5247, 8.6216,\n", " 8.6216, 8.6216, 8.6216, 8.6216, 8.9948, 8.9948, 8.9948, 8.9948, 8.9948,\n", " 9.0436, 9.0436, 9.0436, 9.0436, 9.0436, 8.0755, 8.0755, 8.0755, 8.0755,\n", " 8.0755, 9.1825, 9.1825, 9.1825, 9.1825, 9.1825, 9.4896, 9.4896, 9.4896,\n", " 9.4896, 9.4896, 9.3412, 9.3412, 9.3412, 9.3412, 9.3412, 8.8138, 8.8138,\n", " 8.8138, 8.8138, 8.8138, 9.0299, 9.0299, 9.0299, 9.0299, 9.0299, 9.4002,\n", " 9.4002], device='cuda:6')\n", "weighted_emb norm: tensor([1.7928, 1.7928, 1.7928, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 1.9146,\n", " 1.9146, 1.9146, 1.9146, 1.9146, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 1.9569, 1.9569, 1.9569, 1.9569, 1.9569, 2.0740, 2.0740, 2.0740, 2.0740,\n", " 2.0740, 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 2.0597, 2.0597, 2.0597,\n", " 2.0597, 2.0597, 2.0217, 2.0217, 2.0217, 2.0217, 2.0217, 1.9434, 1.9434,\n", " 1.9434, 1.9434, 1.9434, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505, 2.0879,\n", " 2.0879, 2.0879, 2.0879, 2.0879, 1.9505, 1.9505, 1.9505, 1.9505, 1.9505,\n", " 2.0240], device='cuda:6') max_emb norm: tensor([1.7929, 1.7929, 1.7929, 2.0922, 2.0922, 2.0922, 2.0922, 2.0922, 1.9147,\n", " 1.9147, 1.9147, 1.9147, 1.9147, 1.9569, 1.9569, 1.9569, 1.9569, 1.9569,\n", " 1.9569, 1.9569, 1.9569, 1.9569, 1.9569, 2.0740, 2.0740, 2.0740, 2.0740,\n", " 2.0740, 2.0240, 2.0240, 2.0240, 2.0240, 2.0240, 2.0597, 2.0597, 2.0597,\n", " 2.0597, 2.0597, 2.0217, 2.0217, 2.0217, 2.0217, 2.0217, 1.9435, 1.9435,\n", " 1.9435, 1.9435, 1.9435, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506, 2.0879,\n", " 2.0879, 2.0879, 2.0879, 2.0879, 1.9506, 1.9506, 1.9506, 1.9506, 1.9506,\n", " 2.0240], device='cuda:6') hidden_states norm: tensor([9.4002, 9.4002, 9.4002, 8.3826, 8.3826, 8.3826, 8.3826, 8.3826, 9.2111,\n", " 9.2111, 9.2111, 9.2111, 9.2111, 8.7351, 8.7351, 8.7351, 8.7351, 8.7351,\n", " 8.5857, 8.5857, 8.5857, 8.5857, 8.5857, 8.5151, 8.5151, 8.5151, 8.5151,\n", " 8.5151, 8.8400, 8.8400, 8.8400, 8.8400, 8.8400, 8.5105, 8.5105, 8.5105,\n", " 8.5105, 8.5105, 8.9385, 8.9385, 8.9385, 8.9385, 8.9385, 8.8392, 8.8392,\n", " 8.8392, 8.8392, 8.8392, 8.4653, 8.4653, 8.4653, 8.4653, 8.4653, 8.3092,\n", " 8.3092, 8.3092, 8.3092, 8.3092, 8.6659, 8.6659, 8.6659, 8.6659, 8.6659,\n", " 8.8962], device='cuda:6')\n", "weighted_emb norm: tensor([2.0240, 2.0240, 2.0240, 2.0240, 1.9347, 1.9347, 1.9347, 1.9347, 1.9347,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0922, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.9526, 1.9526, 1.9526,\n", " 1.9526, 1.9526, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879],\n", " device='cuda:6') max_emb norm: tensor([2.0240, 2.0240, 2.0240, 2.0240, 1.9348, 1.9348, 1.9348, 1.9348, 1.9348,\n", " 2.0597, 2.0597, 2.0597, 2.0597, 2.0597, 2.0922, 2.0922, 2.0922, 2.0922,\n", " 2.0922, 1.8983, 1.8983, 1.8983, 1.8983, 1.8983, 1.9527, 1.9527, 1.9527,\n", " 1.9527, 1.9527, 2.0879, 2.0879, 2.0879, 2.0879, 2.0879],\n", " device='cuda:6') hidden_states norm: tensor([8.8962, 8.8962, 8.8962, 8.8962, 8.8025, 8.8025, 8.8025, 8.8025, 8.8025,\n", " 8.5653, 8.5653, 8.5653, 8.5653, 8.5653, 8.3959, 8.3959, 8.3959, 8.3959,\n", " 8.3959, 8.8555, 8.8555, 8.8555, 8.8555, 8.8555, 9.1412, 9.1412, 9.1412,\n", " 9.1412, 9.1412, 8.2269, 8.2269, 8.2269, 8.2269, 8.2269],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.6684, 2.6684, 2.6684, 2.6684, 2.6684, 2.3811, 2.3811, 2.3811, 2.3811,\n", " 2.3811, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.4038, 2.4038, 2.4038,\n", " 2.4038, 2.4038, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.3855, 2.3855,\n", " 2.3855, 2.3855, 2.3855, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994, 2.5565,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.4333, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5915, 2.5915, 2.5915,\n", " 2.5915], device='cuda:6') max_emb norm: tensor([2.6684, 2.6684, 2.6684, 2.6684, 2.6684, 2.3811, 2.3811, 2.3811, 2.3811,\n", " 2.3811, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.4038, 2.4038, 2.4038,\n", " 2.4038, 2.4038, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.3855, 2.3855,\n", " 2.3855, 2.3855, 2.3855, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994, 2.5565,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.4333, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5915, 2.5915, 2.5915,\n", " 2.5915], device='cuda:6') hidden_states norm: tensor([11.1246, 11.1246, 11.1246, 11.1246, 11.1246, 11.1258, 11.1258, 11.1258,\n", " 11.1258, 11.1258, 10.6014, 10.6014, 10.6014, 10.6014, 10.6014, 10.9151,\n", " 10.9151, 10.9151, 10.9151, 10.9151, 11.3882, 11.3882, 11.3882, 11.3882,\n", " 11.3882, 10.8808, 10.8808, 10.8808, 10.8808, 10.8808, 11.3943, 11.3943,\n", " 11.3943, 11.3943, 11.3943, 11.0719, 11.0719, 11.0719, 11.0719, 11.0719,\n", " 10.5559, 10.5559, 10.5559, 10.5559, 10.5559, 11.2300, 11.2300, 11.2300,\n", " 11.2300, 11.2300, 11.0787, 11.0787, 11.0787, 11.0787, 11.0787, 11.0448,\n", " 11.0448, 11.0448, 11.0448, 11.0448, 11.0147, 11.0147, 11.0147, 11.0147],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5915, 2.4734, 2.4734, 2.4734, 2.4734, 2.4734, 2.4537, 2.4537, 2.4537,\n", " 2.4537, 2.4537, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.4881, 2.4881,\n", " 2.4881, 2.4881, 2.4881, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.6544,\n", " 2.6544, 2.6544, 2.6544, 2.6544, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070,\n", " 2.4947, 2.4947, 2.4947, 2.4947, 2.4947, 2.5445, 2.5445, 2.5445, 2.5445,\n", " 2.5445, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.6684, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631, 2.3811, 2.3811,\n", " 2.3811], device='cuda:6') max_emb norm: tensor([2.5915, 2.4735, 2.4735, 2.4735, 2.4735, 2.4735, 2.4537, 2.4537, 2.4537,\n", " 2.4537, 2.4537, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.4881, 2.4881,\n", " 2.4881, 2.4881, 2.4881, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.6544,\n", " 2.6544, 2.6544, 2.6544, 2.6544, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070,\n", " 2.4947, 2.4947, 2.4947, 2.4947, 2.4947, 2.5445, 2.5445, 2.5445, 2.5445,\n", " 2.5445, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.6684, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631, 2.3811, 2.3811,\n", " 2.3811], device='cuda:6') hidden_states norm: tensor([11.0147, 10.7113, 10.7113, 10.7113, 10.7113, 10.7113, 11.1404, 11.1404,\n", " 11.1404, 11.1404, 11.1404, 10.7191, 10.7191, 10.7191, 10.7191, 10.7191,\n", " 10.7661, 10.7661, 10.7661, 10.7661, 10.7661, 10.7781, 10.7781, 10.7781,\n", " 10.7781, 10.7781, 10.7571, 10.7571, 10.7571, 10.7571, 10.7571, 10.8176,\n", " 10.8176, 10.8176, 10.8176, 10.8176, 10.8521, 10.8521, 10.8521, 10.8521,\n", " 10.8521, 10.5522, 10.5522, 10.5522, 10.5522, 10.5522, 10.4943, 10.4943,\n", " 10.4943, 10.4943, 10.4943, 11.0973, 11.0973, 11.0973, 11.0973, 11.0973,\n", " 10.9016, 10.9016, 10.9016, 10.9016, 10.9016, 10.8376, 10.8376, 10.8376],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.3811, 2.3811, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994, 2.5475, 2.5475,\n", " 2.5475, 2.5475, 2.5475, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4755, 2.4391, 2.4391, 2.4391, 2.4391, 2.4391,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.5796, 2.5796, 2.5796, 2.5796,\n", " 2.5796, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.3908, 2.3908, 2.3908, 2.3908, 2.3908, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.3855, 2.3855, 2.3855, 2.3855, 2.3855, 2.3908,\n", " 2.3908], device='cuda:6') max_emb norm: tensor([2.3811, 2.3811, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994, 2.5475, 2.5475,\n", " 2.5475, 2.5475, 2.5475, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4755, 2.4391, 2.4391, 2.4391, 2.4391, 2.4391,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.5796, 2.5796, 2.5796, 2.5796,\n", " 2.5796, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.3908, 2.3908, 2.3908, 2.3908, 2.3908, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.3855, 2.3855, 2.3855, 2.3855, 2.3855, 2.3908,\n", " 2.3908], device='cuda:6') hidden_states norm: tensor([10.8376, 10.8376, 10.6600, 10.6600, 10.6600, 10.6600, 10.6600, 10.7603,\n", " 10.7603, 10.7603, 10.7603, 10.7603, 10.9776, 10.9776, 10.9776, 10.9776,\n", " 10.9776, 11.0522, 11.0522, 11.0522, 11.0522, 11.0522, 11.1010, 11.1010,\n", " 11.1010, 11.1010, 11.1010, 10.6497, 10.6497, 10.6497, 10.6497, 10.6497,\n", " 10.5766, 10.5766, 10.5766, 10.5766, 10.5766, 11.2668, 11.2668, 11.2668,\n", " 11.2668, 11.2668, 10.8719, 10.8719, 10.8719, 10.8719, 10.8719, 10.8857,\n", " 10.8857, 10.8857, 10.8857, 10.8857, 11.0816, 11.0816, 11.0816, 11.0816,\n", " 11.0816, 10.8648, 10.8648, 10.8648, 10.8648, 10.8648, 11.1348, 11.1348],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.3908, 2.3908, 2.3908, 2.1377, 2.1377, 2.1377, 2.1377, 2.1377, 2.3855,\n", " 2.3855, 2.3855, 2.3855, 2.3855, 2.4536, 2.4536, 2.4536, 2.4536, 2.4536,\n", " 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.6544, 2.6544, 2.6544, 2.6544,\n", " 2.6544, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5796, 2.5796, 2.5796,\n", " 2.5796, 2.5796, 2.3043, 2.3043, 2.3043, 2.3043, 2.3043, 2.3835, 2.3835,\n", " 2.3835, 2.3835, 2.3835, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.5445,\n", " 2.5445, 2.5445, 2.5445, 2.5445, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994,\n", " 2.6684], device='cuda:6') max_emb norm: tensor([2.3908, 2.3908, 2.3908, 2.1377, 2.1377, 2.1377, 2.1377, 2.1377, 2.3855,\n", " 2.3855, 2.3855, 2.3855, 2.3855, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537,\n", " 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.6544, 2.6544, 2.6544, 2.6544,\n", " 2.6544, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5796, 2.5796, 2.5796,\n", " 2.5796, 2.5796, 2.3043, 2.3043, 2.3043, 2.3043, 2.3043, 2.3835, 2.3835,\n", " 2.3835, 2.3835, 2.3835, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.5445,\n", " 2.5445, 2.5445, 2.5445, 2.5445, 2.5994, 2.5994, 2.5994, 2.5994, 2.5994,\n", " 2.6684], device='cuda:6') hidden_states norm: tensor([11.1348, 11.1348, 11.1348, 11.5450, 11.5450, 11.5450, 11.5450, 11.5450,\n", " 10.7421, 10.7421, 10.7421, 10.7421, 10.7421, 10.8392, 10.8392, 10.8392,\n", " 10.8392, 10.8392, 11.0414, 11.0414, 11.0414, 11.0414, 11.0414, 10.9581,\n", " 10.9581, 10.9581, 10.9581, 10.9581, 10.8079, 10.8079, 10.8079, 10.8079,\n", " 10.8079, 11.2110, 11.2110, 11.2110, 11.2110, 11.2110, 11.6792, 11.6792,\n", " 11.6792, 11.6792, 11.6792, 11.0993, 11.0993, 11.0993, 11.0993, 11.0993,\n", " 10.6150, 10.6150, 10.6150, 10.6150, 10.6150, 10.6772, 10.6772, 10.6772,\n", " 10.6772, 10.6772, 10.4414, 10.4414, 10.4414, 10.4414, 10.4414, 10.5322],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.6684, 2.6684, 2.6684, 2.6684, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.4808, 2.4808, 2.4808, 2.4808,\n", " 2.4808, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.5475, 2.5475, 2.5475,\n", " 2.5475, 2.5475, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.3811, 2.4709, 2.4709, 2.4709, 2.4709, 2.4709, 2.5994,\n", " 2.5994, 2.5994, 2.5994, 2.5994, 2.4038, 2.4038, 2.4038, 2.4038, 2.4038,\n", " 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.5631, 2.5631, 2.5631, 2.5631,\n", " 2.5631], device='cuda:6') max_emb norm: tensor([2.6684, 2.6684, 2.6684, 2.6684, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.4809, 2.4809, 2.4809, 2.4809,\n", " 2.4809, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.5475, 2.5475, 2.5475,\n", " 2.5475, 2.5475, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.3811, 2.4709, 2.4709, 2.4709, 2.4709, 2.4709, 2.5994,\n", " 2.5994, 2.5994, 2.5994, 2.5994, 2.4038, 2.4038, 2.4038, 2.4038, 2.4038,\n", " 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.5631, 2.5631, 2.5631, 2.5631,\n", " 2.5631], device='cuda:6') hidden_states norm: tensor([10.5322, 10.5322, 10.5322, 10.5322, 10.9392, 10.9392, 10.9392, 10.9392,\n", " 10.9392, 11.2178, 11.2178, 11.2178, 11.2178, 11.2178, 10.8782, 10.8782,\n", " 10.8782, 10.8782, 10.8782, 11.1119, 11.1119, 11.1119, 11.1119, 11.1119,\n", " 11.0609, 11.0609, 11.0609, 11.0609, 11.0609, 10.9191, 10.9191, 10.9191,\n", " 10.9191, 10.9191, 10.6786, 10.6786, 10.6786, 10.6786, 10.6786, 10.6721,\n", " 10.6721, 10.6721, 10.6721, 10.6721, 10.9862, 10.9862, 10.9862, 10.9862,\n", " 10.9862, 11.1287, 11.1287, 11.1287, 11.1287, 11.1287, 11.3053, 11.3053,\n", " 11.3053, 11.3053, 11.3053, 10.6583, 10.6583, 10.6583, 10.6583, 10.6583],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5445, 2.5445, 2.5445, 2.5445, 2.5445, 2.1377, 2.1377, 2.1377, 2.1377,\n", " 2.1377, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.5915, 2.5915,\n", " 2.5915, 2.5915, 2.5915, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3908,\n", " 2.3908, 2.3908, 2.3908, 2.3908, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.5247, 2.4308, 2.4308, 2.4308, 2.4308,\n", " 2.4308, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631, 2.4308, 2.4308, 2.4308,\n", " 2.4308], device='cuda:6') max_emb norm: tensor([2.5445, 2.5445, 2.5445, 2.5445, 2.5445, 2.1377, 2.1377, 2.1377, 2.1377,\n", " 2.1377, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.5915, 2.5915,\n", " 2.5915, 2.5915, 2.5915, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3908,\n", " 2.3908, 2.3908, 2.3908, 2.3908, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.5247, 2.4308, 2.4308, 2.4308, 2.4308,\n", " 2.4308, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631, 2.4308, 2.4308, 2.4308,\n", " 2.4308], device='cuda:6') hidden_states norm: tensor([10.9028, 10.9028, 10.9028, 10.9028, 10.9028, 11.5797, 11.5797, 11.5797,\n", " 11.5797, 11.5797, 10.7509, 10.7509, 10.7509, 10.7509, 10.7509, 10.9444,\n", " 10.9444, 10.9444, 10.9444, 10.9444, 11.2357, 11.2357, 11.2357, 11.2357,\n", " 11.2357, 10.8862, 10.8862, 10.8862, 10.8862, 10.8862, 10.8761, 10.8761,\n", " 10.8761, 10.8761, 10.8761, 10.7925, 10.7925, 10.7925, 10.7925, 10.7925,\n", " 10.6812, 10.6812, 10.6812, 10.6812, 10.6812, 10.5241, 10.5241, 10.5241,\n", " 10.5241, 10.5241, 10.6379, 10.6379, 10.6379, 10.6379, 10.6379, 10.8787,\n", " 10.8787, 10.8787, 10.8787, 10.8787, 11.0646, 11.0646, 11.0646, 11.0646],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4308, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248, 2.4577, 2.4577, 2.4577,\n", " 2.4577, 2.4577, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.4333, 2.4333,\n", " 2.4333, 2.4333, 2.4333, 2.3835, 2.3835, 2.3835, 2.3835, 2.3835, 2.5181,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.3431, 2.3431, 2.3431, 2.3431, 2.3431,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860, 2.4038, 2.4038, 2.4038, 2.4038, 2.4038, 2.4734, 2.4734, 2.4734,\n", " 2.4734, 2.4734, 2.5958, 2.5958, 2.5958, 2.5958, 2.5958, 2.4570, 2.4570,\n", " 2.4570], device='cuda:6') max_emb norm: tensor([2.4308, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248, 2.4578, 2.4578, 2.4578,\n", " 2.4578, 2.4578, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.4333, 2.4333,\n", " 2.4333, 2.4333, 2.4333, 2.3835, 2.3835, 2.3835, 2.3835, 2.3835, 2.5181,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.3431, 2.3431, 2.3431, 2.3431, 2.3431,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860, 2.4038, 2.4038, 2.4038, 2.4038, 2.4038, 2.4735, 2.4735, 2.4735,\n", " 2.4735, 2.4735, 2.5958, 2.5958, 2.5958, 2.5958, 2.5958, 2.4570, 2.4570,\n", " 2.4570], device='cuda:6') hidden_states norm: tensor([11.0646, 10.6266, 10.6266, 10.6266, 10.6266, 10.6266, 10.5516, 10.5516,\n", " 10.5516, 10.5516, 10.5516, 10.9941, 10.9941, 10.9941, 10.9941, 10.9941,\n", " 11.1166, 11.1166, 11.1166, 11.1166, 11.1166, 10.9503, 10.9503, 10.9503,\n", " 10.9503, 10.9503, 11.2666, 11.2666, 11.2666, 11.2666, 11.2666, 11.3734,\n", " 11.3734, 11.3734, 11.3734, 11.3734, 10.8409, 10.8409, 10.8409, 10.8409,\n", " 10.8409, 10.8215, 10.8215, 10.8215, 10.8215, 10.8215, 10.8110, 10.8110,\n", " 10.8110, 10.8110, 10.8110, 10.6831, 10.6831, 10.6831, 10.6831, 10.6831,\n", " 10.2995, 10.2995, 10.2995, 10.2995, 10.2995, 10.8872, 10.8872, 10.8872],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4570, 2.4570, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.4537, 2.4537,\n", " 2.4537, 2.4537, 2.4537, 2.4391, 2.4391, 2.4391, 2.4391, 2.4391, 2.4333,\n", " 2.4333, 2.4333, 2.4333, 2.4333, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.5915, 2.5915, 2.5915, 2.5915,\n", " 2.5915, 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.4306, 2.4306, 2.4306,\n", " 2.4306, 2.4306, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.6989, 2.6989,\n", " 2.6989, 2.6989, 2.6989, 2.4577, 2.4577, 2.4577, 2.4577, 2.4577, 2.5428,\n", " 2.5428], device='cuda:6') max_emb norm: tensor([2.4570, 2.4570, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.4537, 2.4537,\n", " 2.4537, 2.4537, 2.4537, 2.4391, 2.4391, 2.4391, 2.4391, 2.4391, 2.4333,\n", " 2.4333, 2.4333, 2.4333, 2.4333, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.5915, 2.5915, 2.5915, 2.5915,\n", " 2.5915, 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.4306, 2.4306, 2.4306,\n", " 2.4306, 2.4306, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.6989, 2.6989,\n", " 2.6989, 2.6989, 2.6989, 2.4578, 2.4578, 2.4578, 2.4578, 2.4578, 2.5428,\n", " 2.5428], device='cuda:6') hidden_states norm: tensor([10.8872, 10.8872, 11.1553, 11.1553, 11.1553, 11.1553, 11.1553, 10.6745,\n", " 10.6745, 10.6745, 10.6745, 10.6745, 10.5463, 10.5463, 10.5463, 10.5463,\n", " 10.5463, 10.9281, 10.9281, 10.9281, 10.9281, 10.9281, 11.3027, 11.3027,\n", " 11.3027, 11.3027, 11.3027, 10.9258, 10.9258, 10.9258, 10.9258, 10.9258,\n", " 10.6265, 10.6265, 10.6265, 10.6265, 10.6265, 10.6173, 10.6173, 10.6173,\n", " 10.6173, 10.6173, 10.9182, 10.9182, 10.9182, 10.9182, 10.9182, 10.5802,\n", " 10.5802, 10.5802, 10.5802, 10.5802, 10.9686, 10.9686, 10.9686, 10.9686,\n", " 10.9686, 10.6425, 10.6425, 10.6425, 10.6425, 10.6425, 10.8392, 10.8392],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5428, 2.5428, 2.5428, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.5475,\n", " 2.5475, 2.5475, 2.5475, 2.5475, 2.5914, 2.5914, 2.5914, 2.5914, 2.5914,\n", " 2.6247, 2.6247, 2.6247, 2.6247, 2.6247, 2.3908, 2.3908, 2.3908, 2.3908,\n", " 2.3908, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.4881, 2.4881, 2.4881,\n", " 2.4881, 2.4881, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.4248, 2.4248,\n", " 2.4248, 2.4248, 2.4248, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.3996,\n", " 2.3996, 2.3996, 2.3996, 2.3996, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396,\n", " 2.4537], device='cuda:6') max_emb norm: tensor([2.5428, 2.5428, 2.5428, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.5475,\n", " 2.5475, 2.5475, 2.5475, 2.5475, 2.5915, 2.5915, 2.5915, 2.5915, 2.5915,\n", " 2.6248, 2.6248, 2.6248, 2.6248, 2.6248, 2.3908, 2.3908, 2.3908, 2.3908,\n", " 2.3908, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.4881, 2.4881, 2.4881,\n", " 2.4881, 2.4881, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860, 2.4248, 2.4248,\n", " 2.4248, 2.4248, 2.4248, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.3996,\n", " 2.3996, 2.3996, 2.3996, 2.3996, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396,\n", " 2.4537], device='cuda:6') hidden_states norm: tensor([10.8392, 10.8392, 10.8392, 11.2351, 11.2351, 11.2351, 11.2351, 11.2351,\n", " 11.0035, 11.0035, 11.0035, 11.0035, 11.0035, 10.5551, 10.5551, 10.5551,\n", " 10.5551, 10.5551, 10.6750, 10.6750, 10.6750, 10.6750, 10.6750, 10.8085,\n", " 10.8085, 10.8085, 10.8085, 10.8085, 10.6442, 10.6442, 10.6442, 10.6442,\n", " 10.6442, 10.8510, 10.8510, 10.8510, 10.8510, 10.8510, 10.7763, 10.7763,\n", " 10.7763, 10.7763, 10.7763, 10.7358, 10.7358, 10.7358, 10.7358, 10.7358,\n", " 10.9683, 10.9683, 10.9683, 10.9683, 10.9683, 10.3022, 10.3022, 10.3022,\n", " 10.3022, 10.3022, 10.9686, 10.9686, 10.9686, 10.9686, 10.9686, 10.9812],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4537, 2.4537, 2.4537, 2.4537, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.3835, 2.3835, 2.3835, 2.3835,\n", " 2.3835, 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4947, 2.4947, 2.4947,\n", " 2.4947, 2.4947, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.5565, 2.5565,\n", " 2.5565, 2.5565, 2.5565, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.6684, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.5428, 2.5428, 2.5428, 2.5428,\n", " 2.5428], device='cuda:6') max_emb norm: tensor([2.4537, 2.4537, 2.4537, 2.4537, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.3835, 2.3835, 2.3835, 2.3835,\n", " 2.3835, 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4947, 2.4947, 2.4947,\n", " 2.4947, 2.4947, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.5565, 2.5565,\n", " 2.5565, 2.5565, 2.5565, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.6684, 2.5631, 2.5631, 2.5631, 2.5631, 2.5631,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.5428, 2.5428, 2.5428, 2.5428,\n", " 2.5428], device='cuda:6') hidden_states norm: tensor([10.9812, 10.9812, 10.9812, 10.9812, 10.5956, 10.5956, 10.5956, 10.5956,\n", " 10.5956, 10.3159, 10.3159, 10.3159, 10.3159, 10.3159, 10.2673, 10.2673,\n", " 10.2673, 10.2673, 10.2673, 10.7445, 10.7445, 10.7445, 10.7445, 10.7445,\n", " 10.4151, 10.4151, 10.4151, 10.4151, 10.4151, 10.3458, 10.3458, 10.3458,\n", " 10.3458, 10.3458, 10.8334, 10.8334, 10.8334, 10.8334, 10.8334, 10.7942,\n", " 10.7942, 10.7942, 10.7942, 10.7942, 10.4019, 10.4019, 10.4019, 10.4019,\n", " 10.4019, 10.5775, 10.5775, 10.5775, 10.5775, 10.5775, 11.1147, 11.1147,\n", " 11.1147, 11.1147, 11.1147, 11.1941, 11.1941, 11.1941, 11.1941, 11.1941],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3855, 2.3855, 2.3855, 2.3855,\n", " 2.3855, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.5706, 2.5706, 2.5706,\n", " 2.5706, 2.5706, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.4308, 2.4308,\n", " 2.4308, 2.4308, 2.4308, 2.6684, 2.6684, 2.6684, 2.6684, 2.6684, 2.3908,\n", " 2.3908, 2.3908, 2.3908, 2.3908, 2.3237, 2.3237, 2.3237, 2.3237, 2.3237,\n", " 2.5958, 2.5958, 2.5958, 2.5958, 2.5958, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860, 2.4860, 2.4860, 2.4860, 2.4860, 2.4860, 2.6989, 2.6989, 2.6989,\n", " 2.6989], device='cuda:6') max_emb norm: tensor([2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3855, 2.3855, 2.3855, 2.3855,\n", " 2.3855, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.5706, 2.5706, 2.5706,\n", " 2.5706, 2.5706, 2.5428, 2.5428, 2.5428, 2.5428, 2.5428, 2.4308, 2.4308,\n", " 2.4308, 2.4308, 2.4308, 2.6684, 2.6684, 2.6684, 2.6684, 2.6684, 2.3908,\n", " 2.3908, 2.3908, 2.3908, 2.3908, 2.3237, 2.3237, 2.3237, 2.3237, 2.3237,\n", " 2.5958, 2.5958, 2.5958, 2.5958, 2.5958, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860, 2.4860, 2.4860, 2.4860, 2.4860, 2.4860, 2.6989, 2.6989, 2.6989,\n", " 2.6989], device='cuda:6') hidden_states norm: tensor([11.3554, 11.3554, 11.3554, 11.3554, 11.3554, 11.1404, 11.1404, 11.1404,\n", " 11.1404, 11.1404, 11.2518, 11.2518, 11.2518, 11.2518, 11.2518, 10.9317,\n", " 10.9317, 10.9317, 10.9317, 10.9317, 11.1507, 11.1507, 11.1507, 11.1507,\n", " 11.1507, 10.6546, 10.6546, 10.6546, 10.6546, 10.6546, 11.0295, 11.0295,\n", " 11.0295, 11.0295, 11.0295, 11.0249, 11.0249, 11.0249, 11.0249, 11.0249,\n", " 11.2662, 11.2662, 11.2662, 11.2662, 11.2662, 11.0688, 11.0688, 11.0688,\n", " 11.0688, 11.0688, 11.2615, 11.2615, 11.2615, 11.2615, 11.2615, 11.3148,\n", " 11.3148, 11.3148, 11.3148, 11.3148, 10.7033, 10.7033, 10.7033, 10.7033],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.6989, 2.4748, 2.4748, 2.4748, 2.4748, 2.4748, 2.3908, 2.3908, 2.3908,\n", " 2.3908, 2.3908, 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.3811, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.2434,\n", " 2.2434, 2.2434, 2.2434, 2.2434, 2.4748, 2.4748, 2.4748, 2.4748, 2.4748,\n", " 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.5914, 2.5914, 2.5914, 2.5914,\n", " 2.5914, 2.4735, 2.4735, 2.4735, 2.4735, 2.4735, 2.3620, 2.3620, 2.3620,\n", " 2.3620, 2.3620, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.4308, 2.4308,\n", " 2.4308], device='cuda:6') max_emb norm: tensor([2.6989, 2.4748, 2.4748, 2.4748, 2.4748, 2.4748, 2.3908, 2.3908, 2.3908,\n", " 2.3908, 2.3908, 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.3811, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996, 2.2434,\n", " 2.2434, 2.2434, 2.2434, 2.2434, 2.4748, 2.4748, 2.4748, 2.4748, 2.4748,\n", " 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.5915, 2.5915, 2.5915, 2.5915,\n", " 2.5915, 2.4735, 2.4735, 2.4735, 2.4735, 2.4735, 2.3620, 2.3620, 2.3620,\n", " 2.3620, 2.3620, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.4308, 2.4308,\n", " 2.4308], device='cuda:6') hidden_states norm: tensor([10.7033, 11.0024, 11.0024, 11.0024, 11.0024, 11.0024, 10.4223, 10.4223,\n", " 10.4223, 10.4223, 10.4223, 11.3727, 11.3727, 11.3727, 11.3727, 11.3727,\n", " 10.5631, 10.5631, 10.5631, 10.5631, 10.5631, 10.8709, 10.8709, 10.8709,\n", " 10.8709, 10.8709, 10.9707, 10.9707, 10.9707, 10.9707, 10.9707, 10.6932,\n", " 10.6932, 10.6932, 10.6932, 10.6932, 11.0261, 11.0261, 11.0261, 11.0261,\n", " 11.0261, 10.9247, 10.9247, 10.9247, 10.9247, 10.9247, 11.4577, 11.4577,\n", " 11.4577, 11.4577, 11.4577, 11.0143, 11.0143, 11.0143, 11.0143, 11.0143,\n", " 10.8967, 10.8967, 10.8967, 10.8967, 10.8967, 10.9593, 10.9593, 10.9593],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4308, 2.4308, 2.5915, 2.5915, 2.5915, 2.5915, 2.5915, 2.4755, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4755, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.3043, 2.3043, 2.3043, 2.3043,\n", " 2.3043, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.3043, 2.3043, 2.3043, 2.3043, 2.3043, 2.4709, 2.4709,\n", " 2.4709, 2.4709, 2.4709, 2.4308, 2.4308, 2.4308, 2.4308, 2.4308, 2.3620,\n", " 2.3620], device='cuda:6') max_emb norm: tensor([2.4308, 2.4308, 2.5915, 2.5915, 2.5915, 2.5915, 2.5915, 2.4755, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.4755,\n", " 2.4755, 2.4755, 2.4755, 2.4755, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.4537, 2.4537, 2.4537, 2.4537, 2.4537, 2.3043, 2.3043, 2.3043, 2.3043,\n", " 2.3043, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5958, 2.5958, 2.5958,\n", " 2.5958, 2.5958, 2.3043, 2.3043, 2.3043, 2.3043, 2.3043, 2.4709, 2.4709,\n", " 2.4709, 2.4709, 2.4709, 2.4308, 2.4308, 2.4308, 2.4308, 2.4308, 2.3620,\n", " 2.3620], device='cuda:6') hidden_states norm: tensor([10.9593, 10.9593, 10.9778, 10.9778, 10.9778, 10.9778, 10.9778, 10.7556,\n", " 10.7556, 10.7556, 10.7556, 10.7556, 10.7679, 10.7679, 10.7679, 10.7679,\n", " 10.7679, 10.8040, 10.8040, 10.8040, 10.8040, 10.8040, 10.8528, 10.8528,\n", " 10.8528, 10.8528, 10.8528, 10.6462, 10.6462, 10.6462, 10.6462, 10.6462,\n", " 11.2942, 11.2942, 11.2942, 11.2942, 11.2942, 11.2951, 11.2951, 11.2951,\n", " 11.2951, 11.2951, 10.5429, 10.5429, 10.5429, 10.5429, 10.5429, 11.4740,\n", " 11.4740, 11.4740, 11.4740, 11.4740, 10.6830, 10.6830, 10.6830, 10.6830,\n", " 10.6830, 10.6963, 10.6963, 10.6963, 10.6963, 10.6963, 10.8847, 10.8847],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.4038,\n", " 2.4038, 2.4038, 2.4038, 2.4038, 2.2434, 2.2434, 2.2434, 2.2434, 2.2434,\n", " 2.3431, 2.3431, 2.3431, 2.3431, 2.3431, 2.4038, 2.4038, 2.4038, 2.4038,\n", " 2.4038, 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.3811, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860,\n", " 2.4860, 2.4860, 2.4860, 2.4860, 2.4577, 2.4577, 2.4577, 2.4577, 2.4577,\n", " 2.4735], device='cuda:6') max_emb norm: tensor([2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.4038,\n", " 2.4038, 2.4038, 2.4038, 2.4038, 2.2434, 2.2434, 2.2434, 2.2434, 2.2434,\n", " 2.3431, 2.3431, 2.3431, 2.3431, 2.3431, 2.4038, 2.4038, 2.4038, 2.4038,\n", " 2.4038, 2.5475, 2.5475, 2.5475, 2.5475, 2.5475, 2.3811, 2.3811, 2.3811,\n", " 2.3811, 2.3811, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248, 2.6684, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860,\n", " 2.4860, 2.4860, 2.4860, 2.4860, 2.4578, 2.4578, 2.4578, 2.4578, 2.4578,\n", " 2.4735], device='cuda:6') hidden_states norm: tensor([10.8847, 10.8847, 10.8847, 10.9362, 10.9362, 10.9362, 10.9362, 10.9362,\n", " 11.1284, 11.1284, 11.1284, 11.1284, 11.1284, 11.1415, 11.1415, 11.1415,\n", " 11.1415, 11.1415, 11.1705, 11.1705, 11.1705, 11.1705, 11.1705, 11.0137,\n", " 11.0137, 11.0137, 11.0137, 11.0137, 10.8226, 10.8226, 10.8226, 10.8226,\n", " 10.8226, 10.8626, 10.8626, 10.8626, 10.8626, 10.8626, 10.6030, 10.6030,\n", " 10.6030, 10.6030, 10.6030, 10.8126, 10.8126, 10.8126, 10.8126, 10.8126,\n", " 11.0671, 11.0671, 11.0671, 11.0671, 11.0671, 10.9099, 10.9099, 10.9099,\n", " 10.9099, 10.9099, 10.3272, 10.3272, 10.3272, 10.3272, 10.3272, 11.6985],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4735, 2.4735, 2.4735, 2.4735, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.5445, 2.5445, 2.5445, 2.5445,\n", " 2.5445, 2.4709, 2.4709, 2.4709, 2.4709, 2.4709, 2.4570, 2.4570, 2.4570,\n", " 2.4570, 2.4570, 2.2434, 2.2434, 2.2434, 2.2434, 2.2434, 2.5428, 2.5428,\n", " 2.5428, 2.5428, 2.5428, 2.4735, 2.4735, 2.4735, 2.4735, 2.4735, 2.5428,\n", " 2.5428, 2.5428, 2.5428, 2.5428, 2.2932, 2.2932, 2.2932, 2.2932, 2.2932,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860], device='cuda:6') max_emb norm: tensor([2.4735, 2.4735, 2.4735, 2.4735, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565,\n", " 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.5445, 2.5445, 2.5445, 2.5445,\n", " 2.5445, 2.4709, 2.4709, 2.4709, 2.4709, 2.4709, 2.4570, 2.4570, 2.4570,\n", " 2.4570, 2.4570, 2.2434, 2.2434, 2.2434, 2.2434, 2.2434, 2.5428, 2.5428,\n", " 2.5428, 2.5428, 2.5428, 2.4735, 2.4735, 2.4735, 2.4735, 2.4735, 2.5428,\n", " 2.5428, 2.5428, 2.5428, 2.5428, 2.2932, 2.2932, 2.2932, 2.2932, 2.2932,\n", " 2.5181, 2.5181, 2.5181, 2.5181, 2.5181, 2.4860, 2.4860, 2.4860, 2.4860,\n", " 2.4860], device='cuda:6') hidden_states norm: tensor([11.6985, 11.6985, 11.6985, 11.6985, 10.7474, 10.7474, 10.7474, 10.7474,\n", " 10.7474, 11.0561, 11.0561, 11.0561, 11.0561, 11.0561, 11.1548, 11.1548,\n", " 11.1548, 11.1548, 11.1548, 11.0656, 11.0656, 11.0656, 11.0656, 11.0656,\n", " 10.9301, 10.9301, 10.9301, 10.9301, 10.9301, 11.1248, 11.1248, 11.1248,\n", " 11.1248, 11.1248, 11.2103, 11.2103, 11.2103, 11.2103, 11.2103, 11.0872,\n", " 11.0872, 11.0872, 11.0872, 11.0872, 10.9854, 10.9854, 10.9854, 10.9854,\n", " 10.9854, 11.0113, 11.0113, 11.0113, 11.0113, 11.0113, 11.3322, 11.3322,\n", " 11.3322, 11.3322, 11.3322, 11.0012, 11.0012, 11.0012, 11.0012, 11.0012],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.4176, 2.4176, 2.4176, 2.4176,\n", " 2.4176, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4306, 2.4306, 2.4306,\n", " 2.4306, 2.4306, 2.3237, 2.3237, 2.3237, 2.3237, 2.3237, 2.3043, 2.3043,\n", " 2.3043, 2.3043, 2.3043, 2.5915, 2.5915, 2.5915, 2.5915, 2.5915, 2.5247,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396,\n", " 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.3996, 2.3996, 2.3996, 2.3996,\n", " 2.3996, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706,\n", " 2.5706], device='cuda:6') max_emb norm: tensor([2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.4176, 2.4176, 2.4176, 2.4176,\n", " 2.4176, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4306, 2.4306, 2.4306,\n", " 2.4306, 2.4306, 2.3237, 2.3237, 2.3237, 2.3237, 2.3237, 2.3043, 2.3043,\n", " 2.3043, 2.3043, 2.3043, 2.5915, 2.5915, 2.5915, 2.5915, 2.5915, 2.5247,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396,\n", " 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.3996, 2.3996, 2.3996, 2.3996,\n", " 2.3996, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706, 2.5706,\n", " 2.5706], device='cuda:6') hidden_states norm: tensor([11.5909, 11.5909, 11.5909, 11.5909, 11.5909, 11.1931, 11.1931, 11.1931,\n", " 11.1931, 11.1931, 11.0418, 11.0418, 11.0418, 11.0418, 11.0418, 10.4082,\n", " 10.4082, 10.4082, 10.4082, 10.4082, 11.0964, 11.0964, 11.0964, 11.0964,\n", " 11.0964, 11.6272, 11.6272, 11.6272, 11.6272, 11.6272, 11.0113, 11.0113,\n", " 11.0113, 11.0113, 11.0113, 10.8660, 10.8660, 10.8660, 10.8660, 10.8660,\n", " 10.9053, 10.9053, 10.9053, 10.9053, 10.9053, 11.0236, 11.0236, 11.0236,\n", " 11.0236, 11.0236, 10.3758, 10.3758, 10.3758, 10.3758, 10.3758, 10.5419,\n", " 10.5419, 10.5419, 10.5419, 10.5419, 11.0048, 11.0048, 11.0048, 11.0048],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.5706, 2.4306, 2.4306, 2.4306, 2.4306, 2.4306, 2.1377, 2.1377, 2.1377,\n", " 2.1377, 2.1377, 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.6544, 2.6544,\n", " 2.6544, 2.6544, 2.6544, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333, 2.6989,\n", " 2.6989, 2.6989, 2.6989, 2.6989, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.3860, 2.3860, 2.3860, 2.3860,\n", " 2.3860, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.3860, 2.3860, 2.3860,\n", " 2.3860, 2.3860, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.4421, 2.4421,\n", " 2.4421], device='cuda:6') max_emb norm: tensor([2.5706, 2.4306, 2.4306, 2.4306, 2.4306, 2.4306, 2.1377, 2.1377, 2.1377,\n", " 2.1377, 2.1377, 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.6544, 2.6544,\n", " 2.6544, 2.6544, 2.6544, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333, 2.6989,\n", " 2.6989, 2.6989, 2.6989, 2.6989, 2.6248, 2.6248, 2.6248, 2.6248, 2.6248,\n", " 2.4248, 2.4248, 2.4248, 2.4248, 2.4248, 2.3860, 2.3860, 2.3860, 2.3860,\n", " 2.3860, 2.6989, 2.6989, 2.6989, 2.6989, 2.6989, 2.3860, 2.3860, 2.3860,\n", " 2.3860, 2.3860, 2.4396, 2.4396, 2.4396, 2.4396, 2.4396, 2.4421, 2.4421,\n", " 2.4421], device='cuda:6') hidden_states norm: tensor([11.0048, 10.8584, 10.8584, 10.8584, 10.8584, 10.8584, 11.4984, 11.4984,\n", " 11.4984, 11.4984, 11.4984, 11.1566, 11.1566, 11.1566, 11.1566, 11.1566,\n", " 11.3095, 11.3095, 11.3095, 11.3095, 11.3095, 11.1694, 11.1694, 11.1694,\n", " 11.1694, 11.1694, 11.1631, 11.1631, 11.1631, 11.1631, 11.1631, 10.7808,\n", " 10.7808, 10.7808, 10.7808, 10.7808, 10.6893, 10.6893, 10.6893, 10.6893,\n", " 10.6893, 11.0956, 11.0956, 11.0956, 11.0956, 11.0956, 10.8828, 10.8828,\n", " 10.8828, 10.8828, 10.8828, 10.1521, 10.1521, 10.1521, 10.1521, 10.1521,\n", " 11.0490, 11.0490, 11.0490, 11.0490, 11.0490, 10.4916, 10.4916, 10.4916],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4421, 2.4421, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4808, 2.4808,\n", " 2.4808, 2.4808, 2.4808, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.6684, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.4881, 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.2932, 2.2932, 2.2932,\n", " 2.2932, 2.2932, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.3860, 2.3860,\n", " 2.3860, 2.3860, 2.3860, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.4333,\n", " 2.4333], device='cuda:6') max_emb norm: tensor([2.4421, 2.4421, 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4809, 2.4809,\n", " 2.4809, 2.4809, 2.4809, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.6684,\n", " 2.6684, 2.6684, 2.6684, 2.6684, 2.4333, 2.4333, 2.4333, 2.4333, 2.4333,\n", " 2.5796, 2.5796, 2.5796, 2.5796, 2.5796, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.4881, 2.4570, 2.4570, 2.4570, 2.4570, 2.4570, 2.2932, 2.2932, 2.2932,\n", " 2.2932, 2.2932, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.3860, 2.3860,\n", " 2.3860, 2.3860, 2.3860, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881, 2.4333,\n", " 2.4333], device='cuda:6') hidden_states norm: tensor([10.4916, 10.4916, 11.2124, 11.2124, 11.2124, 11.2124, 11.2124, 10.3251,\n", " 10.3251, 10.3251, 10.3251, 10.3251, 10.5791, 10.5791, 10.5791, 10.5791,\n", " 10.5791, 10.6141, 10.6141, 10.6141, 10.6141, 10.6141, 10.9408, 10.9408,\n", " 10.9408, 10.9408, 10.9408, 10.9725, 10.9725, 10.9725, 10.9725, 10.9725,\n", " 11.1779, 11.1779, 11.1779, 11.1779, 11.1779, 11.0268, 11.0268, 11.0268,\n", " 11.0268, 11.0268, 11.2707, 11.2707, 11.2707, 11.2707, 11.2707, 11.0422,\n", " 11.0422, 11.0422, 11.0422, 11.0422, 10.9761, 10.9761, 10.9761, 10.9761,\n", " 10.9761, 10.9267, 10.9267, 10.9267, 10.9267, 10.9267, 10.9815, 10.9815],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4333, 2.4333, 2.4333, 2.6069, 2.6069, 2.6069, 2.6069, 2.6069, 2.4881,\n", " 2.4881, 2.4881, 2.4881, 2.4881, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537,\n", " 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.6248, 2.6248, 2.6248, 2.6248,\n", " 2.6248, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.5706, 2.5706, 2.5706,\n", " 2.5706, 2.5706, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3237, 2.3237,\n", " 2.3237, 2.3237, 2.3237, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5247,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860,\n", " 2.4709], device='cuda:6') max_emb norm: tensor([2.4333, 2.4333, 2.4333, 2.6070, 2.6070, 2.6070, 2.6070, 2.6070, 2.4881,\n", " 2.4881, 2.4881, 2.4881, 2.4881, 2.4537, 2.4537, 2.4537, 2.4537, 2.4537,\n", " 2.3620, 2.3620, 2.3620, 2.3620, 2.3620, 2.6248, 2.6248, 2.6248, 2.6248,\n", " 2.6248, 2.5565, 2.5565, 2.5565, 2.5565, 2.5565, 2.5706, 2.5706, 2.5706,\n", " 2.5706, 2.5706, 2.4176, 2.4176, 2.4176, 2.4176, 2.4176, 2.3237, 2.3237,\n", " 2.3237, 2.3237, 2.3237, 2.4421, 2.4421, 2.4421, 2.4421, 2.4421, 2.5247,\n", " 2.5247, 2.5247, 2.5247, 2.5247, 2.3860, 2.3860, 2.3860, 2.3860, 2.3860,\n", " 2.4709], device='cuda:6') hidden_states norm: tensor([10.9815, 10.9815, 10.9815, 11.0282, 11.0282, 11.0282, 11.0282, 11.0282,\n", " 10.8320, 10.8320, 10.8320, 10.8320, 10.8320, 11.2570, 11.2570, 11.2570,\n", " 11.2570, 11.2570, 10.7681, 10.7681, 10.7681, 10.7681, 10.7681, 10.6581,\n", " 10.6581, 10.6581, 10.6581, 10.6581, 10.7872, 10.7872, 10.7872, 10.7872,\n", " 10.7872, 10.8653, 10.8653, 10.8653, 10.8653, 10.8653, 11.0706, 11.0706,\n", " 11.0706, 11.0706, 11.0706, 11.1968, 11.1968, 11.1968, 11.1968, 11.1968,\n", " 10.7308, 10.7308, 10.7308, 10.7308, 10.7308, 10.6589, 10.6589, 10.6589,\n", " 10.6589, 10.6589, 10.5565, 10.5565, 10.5565, 10.5565, 10.5565, 10.5929],\n", " device='cuda:6')\n", "weighted_emb norm: tensor([2.4709, 2.4709, 2.4709, 2.4709, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.3835, 2.3835, 2.3835, 2.3835, 2.3835, 2.4709, 2.4709, 2.4709, 2.4709,\n", " 2.4709, 2.2932, 2.2932, 2.2932, 2.2932, 2.2932, 2.4248, 2.4248, 2.4248,\n", " 2.4248, 2.4248, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996],\n", " device='cuda:6') max_emb norm: tensor([2.4709, 2.4709, 2.4709, 2.4709, 2.4881, 2.4881, 2.4881, 2.4881, 2.4881,\n", " 2.3835, 2.3835, 2.3835, 2.3835, 2.3835, 2.4709, 2.4709, 2.4709, 2.4709,\n", " 2.4709, 2.2932, 2.2932, 2.2932, 2.2932, 2.2932, 2.4248, 2.4248, 2.4248,\n", " 2.4248, 2.4248, 2.3996, 2.3996, 2.3996, 2.3996, 2.3996],\n", " device='cuda:6') hidden_states norm: tensor([10.5929, 10.5929, 10.5929, 10.5929, 11.1702, 11.1702, 11.1702, 11.1702,\n", " 11.1702, 11.1265, 11.1265, 11.1265, 11.1265, 11.1265, 11.4641, 11.4641,\n", " 11.4641, 11.4641, 11.4641, 11.1386, 11.1386, 11.1386, 11.1386, 11.1386,\n", " 11.2772, 11.2772, 11.2772, 11.2772, 11.2772, 10.9056, 10.9056, 10.9056,\n", " 10.9056, 10.9056], device='cuda:6')\n" ] }, { "data": { "text/plain": [ "{'atom_train_no_loop': 1.0,\n", " 'atom_train_loop': 0.268,\n", " 'atom_train_any': 1.0,\n", " 'twohop_train_no_loop': 0.0048,\n", " 'twohop_train_loop': 1.0,\n", " 'twohop_train_any': 1.0,\n", " 'atom_test_no_loop': 0.0,\n", " 'atom_test_loop': 0.0,\n", " 'atom_test_any': 0.0,\n", " 'twohop_test_no_loop': 0.0264,\n", " 'twohop_test_loop': 0.8664,\n", " 'twohop_test_any': 0.8664}" ] }, "execution_count": 52, "metadata": {}, "output_type": "execute_result" } ], "source": [ "results = {}\n", "outputs = {}\n", "reprs = {}\n", "\n", "splits = {\n", " \"atom_train\": atom_train_ds,\n", " \"twohop_train\": twohop_train_ds,\n", " \"atom_test\": atom_test_ds,\n", " \"twohop_test\": twohop_test_ds,\n", "}\n", "\n", "for split_name, dataset in splits.items():\n", " acc_no, out_no, reps_no = eval_split(model, tokenizer, dataset, loop=False)\n", " acc_loop, out_loop, reps_loop = eval_split(model, tokenizer, dataset, loop=True, clean=True, clean_indexes=[1], mix_ratio=0.5)\n", "\n", " results[f\"{split_name}_no_loop\"] = acc_no\n", " results[f\"{split_name}_loop\"] = acc_loop\n", " results[f\"{split_name}_any\"] = float(\n", " sum(\n", " (out_no[i][\"correct\"] or out_loop[i][\"correct\"])\n", " for i in range(min(len(out_no), len(out_loop)))\n", " )\n", " / max(1, min(len(out_no), len(out_loop)))\n", " )\n", "\n", " merged = []\n", " for i in range(min(len(out_no), len(out_loop))):\n", " merged.append(\n", " {\n", " \"input_text\": out_no[i][\"input_text\"],\n", " \"target_text\": out_no[i][\"target_text\"],\n", " \"target_answer\": out_no[i][\"target_answer\"],\n", " \"model_answer_no_loop\": out_no[i][\"model_answer\"],\n", " \"model_answer_loop\": out_loop[i][\"model_answer\"],\n", " \"model_output_no_loop\": out_no[i][\"model_output\"],\n", " \"model_output_loop\": out_loop[i][\"model_output\"],\n", " \"correct_no_loop\": out_no[i][\"correct\"],\n", " \"correct_loop\": out_loop[i][\"correct\"],\n", " \"correct_any\": out_no[i][\"correct\"] or out_loop[i][\"correct\"],\n", " }\n", " )\n", "\n", " outputs[split_name] = merged\n", " reprs[f\"{split_name}_no_loop\"] = reps_no\n", " reprs[f\"{split_name}_loop\"] = reps_loop\n", "\n", "results" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "PosixPath('/home/hengyu/ImplicitReasoning/outputs/loop_eval_v2')" ] }, "execution_count": 20, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Save outputs and representations\n", "\n", "np.savez(OUTPUT_DIR / \"output_representations.npz\", **reprs)\n", "with (OUTPUT_DIR / \"eval_outputs.json\").open(\"w\", encoding=\"utf-8\") as f:\n", " json.dump(outputs, f, indent=2)\n", "with (OUTPUT_DIR / \"eval_metrics.json\").open(\"w\", encoding=\"utf-8\") as f:\n", " json.dump(results, f, indent=2)\n", "\n", "OUTPUT_DIR" ] }, { "cell_type": "code", "execution_count": null, "id": "7c9bd9cd", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "implicitreasoning", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.19" } }, "nbformat": 4, "nbformat_minor": 5 }