codetrace
Science Score: 62.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
✓Institutional organization owner
Organization nuprl has institutional domain (www.ccs.neu.edu) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: nuprl
- License: bsd-3-clause
- Language: Jupyter Notebook
- Default Branch: main
- Size: 804 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Codetrace
This repo contains the code for the paper Understanding How CodeLLMs (Mis)Predict Types with Activation Steering. Please cite as:
bibtex
@article{lucchetti2024understanding,
title={Understanding How CodeLLMs (Mis) Predict Types with Activation Steering},
author={Lucchetti, Francesca and Guha, Arjun},
journal={arXiv preprint arXiv:2404.01903},
year={2024}
}
Prerequisites
This repo requires tree-sitter, vllm and nnsight. We used separate environments for each (see requirements file) but for newer versions this is no longer necessary.
Installation
TypeScript is required for typechecking. To install TS:
bash
// install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
// run nvm bash script
source ~/.bashrc
// install node
nvm install node
// install ts-node
mkdir ~/.npm_packages
npm install --prefix ~/.npm_packages ts-node typescript '@types/node'
npx --cache ~/.npm_packages ts-node --typeCheck <prog.ts>
To build the package:
bash
python -m build
export PYTHONPATH=/path/to/your/package:$PYTHONPATH
To add environment to jupyter kernel, in jupyer kernel.json add env var, then restart vscode.
bash
"env": {"PYTHONPATH": "/path/to/your/package:$PYTHONPATH"}`
Owner
- Name: Northeastern University Programming Research Lab
- Login: nuprl
- Kind: organization
- Location: Boston
- Website: http://www.ccs.neu.edu/research/prl/
- Repositories: 39
- Profile: https://github.com/nuprl
Citation (CITATION.cff)
cff-version: 1.2.0
message: If you use this software, please cite both the article from preferred-citation and the software itself.
authors:
- family-names: Lucchetti
given-names: Francesca
- family-names: Guha
given-names: Arjun
title: Understanding How CodeLLMs (Mis) Predict Types with Activation Steering
version: 1.0.0
date-released: '2024-02-25'
preferred-citation:
authors:
- family-names: Lucchetti
given-names: Francesca
- family-names: Guha
given-names: Arjun
title: Understanding How CodeLLMs (Mis) Predict Types with Activation Steering
type: article-journal
year: '2024'
conference: {}
publisher: {}
GitHub Events
Total
- Public event: 1
- Fork event: 1
Last Year
- Public event: 1
- Fork event: 1