{"id":15906867,"url":"https://github.com/csinva/tpr-fmri","last_synced_at":"2026-03-04T09:32:06.207Z","repository":{"id":221920938,"uuid":"755781422","full_name":"csinva/tpr-fmri","owner":"csinva","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-01T19:28:52.000Z","size":50028,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-14T07:41:46.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csinva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-11T03:06:04.000Z","updated_at":"2024-05-01T19:28:56.000Z","dependencies_parsed_at":"2024-02-11T04:24:57.398Z","dependency_job_id":"086882f7-0e5b-48d7-823b-a62021ce968d","html_url":"https://github.com/csinva/tpr-fmri","commit_stats":null,"previous_names":["csinva/tpr-embeddings"],"tags_count":0,"template":false,"template_full_name":"csinva/cookiecutter-ml-research","purl":"pkg:github/csinva/tpr-fmri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csinva%2Ftpr-fmri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csinva%2Ftpr-fmri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csinva%2Ftpr-fmri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csinva%2Ftpr-fmri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csinva","download_url":"https://codeload.github.com/csinva/tpr-fmri/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csinva%2Ftpr-fmri/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30077078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T13:42:00.655Z","updated_at":"2026-03-04T09:32:06.184Z","avatar_url":"https://github.com/csinva.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n- clone the repo and run `pip install -e .`, resulting in a package named `tpr` that can be imported\n- download the linear encoding weights\n  - OPT: download the weights [here](https://utexas.app.box.com/v/EncodingModelScalingLaws/folder/230422424869) and move to the folder `tpr-embeddings/fmri_voxel_data/llama_model/model_weights`\n    - rename the weights in that folder to `wt_UTS01.jbl`, `wt_UTS01.jbl`, `wt_UTS03.jbl`\n  - LLaMA: download the weights [here](https://utexas.app.box.com/v/EncodingModelScalingLaws/folder/230422427269) and move to the folder `tpr-embeddings/fmri_voxel_data/llama_model/model_weights`\n    - rename the weights in that folder to `wt_UTS01.jbl`, `wt_UTS01.jbl`, `wt_UTS03.jbl`\n- if everything is set up properly, you should be able to run the [notebooks/01_module_example.ipynb](notebooks/01_module_example.ipynb) notebook without any issues\n\n# Organization\n- `data`: contains text and scripts for text to evaluate the models on\n  - `data/fmri`: shows a sample test story of the type that the models were trained on\n- `voxel_data`: contains metadata on the fMRI experiments\n- `tpr`: contains main code for modeling (e.g. model architecture)\n- `notebooks`: experiments in jupyter notebooks\n\n# Reference\nThis repo copies a lot of code from [encoding-model-scaling-laws](https://github.com/HuthLab/encoding-model-scaling-laws/tree/main), which is the repo for the paper \"Scaling laws for language encoding models in fMRI\" ([antonello, vaidya, \u0026 huth, 2023](https://github.com/HuthLab/encoding-model-scaling-laws/tree/main?tab=readme-ov-file)). See the cool results there! It also copies a lot of code from the repo for [SASC](https://github.com/microsoft/automated-explanations/tree/main).\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsinva%2Ftpr-fmri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsinva%2Ftpr-fmri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsinva%2Ftpr-fmri/lists"}