Downloads · 30 days
0
jahnavisharma/llm-representation-alignment
llm-representation-alignment is a machine learning model from jahnavisharma. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the initial experiments for investigating representation alignment and model stitching in Large Language Models (LLMs).
Downloads · 30 days
0
Access
Public
Updated Jun 25, 2026
Repo size
449 MB
Likes
0
Public
Click a slice to open those files.
Other14 KB · 69%
From the Hugging Face model README
This repository contains the initial experiments for investigating representation alignment and model stitching in Large Language Models (LLMs).
Our objective is to determine whether hidden-state representations from different LLMs can be aligned and whether representation alignment can help explain hallucinations and factual errors.
evaluate.py – Runs a small factual QA evaluation.benchmark_test.py – Loads and explores the TruthfulQA benchmark.hidden_states.py – Extracts hidden states from all transformer layers.compare_models.py – Compares hidden-state representations across models.factual_qa.json – Small custom dataset used for initial testing.The complete source code, setup instructions, and scripts needed to reproduce these experiments are available on GitHub:
GitHub Repository: https://github.com/jsharma0110/llm-representation-alignment