hidden_state = self.embeddings(input_tokens)
for layer in self.layers:
hidden_state = layer(hidden_state)
return transform_into_logits(hidden_state)Representation Engineering: Mistral-7B on Acid
11–20 of 69 posts
Re: Representation Engineering: Mistral-7B on Acid
#12I'd never seen an LLM summarized like this before, and I really like it: hidden_state = self.embeddings(input_tokens) for layer in self.layers: hidden_state = layer(hidden_state) return transform_into_logits(hidden_state)
Re: Representation Engineering: Mistral-7B on Acid
#13I'd never seen an LLM summarized like this before, and I really like it: hidden_state = self.embeddings(input_tokens) for layer in self.layers: hidden_state = layer(hidden_state) return transform_into_logits(hidden_state)
Re: Representation Engineering: Mistral-7B on Acid
#14I'd never seen an LLM summarized like this before, and I really like it: hidden_state = self.embeddings(input_tokens) for layer in self.layers: hidden_state = layer(hidden_state) return transform_into_logits(hidden_state)
I don't follow. Isn't this the flow for practically every neutral network i.e you index the sampled inputs from the embedding Matrix, forward this through every hidden layer and then finally transform to the dimensions of your tokens so that it can be interpreted as log-counts?
Re: Representation Engineering: Mistral-7B on Acid
#15Interesting, seems like control vectors could reduce the need to fine-tune a model.
Not only that, you can change the behavior of the model as needed. With 5 finetunes you need to host 5 copies or load and unload them. With control vectors you can modify the model as needed
If you use LoRA, which many do when fine-tuning nowadays, you don't need five full copies. You only need to store adapters, which can be in the tens of MBs range for a given finetune.
Re: Representation Engineering: Mistral-7B on Acid
#16Earlier quoted context omitted.
Not only that, you can change the behavior of the model as needed. With 5 finetunes you need to host 5 copies or load and unload them. With control vectors you can modify the model as needed
> With 5 finetunes you need to host 5 copies or load and unload them. If you use LoRA, which many do when fine-tuning nowadays, you don't need five full copies. You only need to store adapters, which can be in the tens of MBs range for a given finetune.
Re: Representation Engineering: Mistral-7B on Acid
#17Very interesting! Can you see those helping for RAG scenarios? Specifically: - decreasing models tendency to answer with ungrounded answers - increase models ability to respond with the correct syntax for citations- the open models like llama2 dont seem to obey my prompt’s syntax instructions.
You can use outlines https://github.com/outlines-dev/outlines to let models generate with correct syntax.
Re: Representation Engineering: Mistral-7B on Acid
#18On a less serious note. This sentence should be something a fiction writer knows will only end in trouble for humanity:
> I especially challenge someone to find a "self-awareness" vector that isn't contaminated by ... human emotion!
Re: Representation Engineering: Mistral-7B on Acid
#19> When used with the prompt below, the honesty vector doesn't change the model's behavior—instead, it changes the model's judgment of someone else's behavior! This is the same honesty vector as before—generated by asking the model to act honest or untruthful! [...] How do you explain this?
Isn't the control vector just pushing text generation towards the concept of honesty/dishonesty? An LLM is 'just' a text generator, so you get added honesty/dishonesty irrespective of where in the bot/human conversation text generation is occuring?