GithubHelp home page GithubHelp logo

bigcode-project / bigcode-analysis Goto Github PK

View Code? Open in Web Editor NEW
113.0 7.0 20.0 18.3 MB

Repository for analysis and experiments in the BigCode project.

License: Apache License 2.0

Jupyter Notebook 98.34% Python 1.66% Shell 0.01%

bigcode-analysis's Introduction

BigCode Analysis

This repository is for the analysis done in BigCode Project. You can find analysis of datasets, models, architecture choices and more.

Contents

  • Data analysis: In the folder data_analysis, we provide code for data analysis:

    • Near deduplication
    • Python data analysis:
      • Natural language distribution in comments/docstrings
      • Data decontamination for HumanEval and MBPP benchmarks
      • Percentage of files that can be successfully compiled
      • Percentage of configuration and test files
      • Exploration of unimax sampling on The Stack Some notebooks with some early data and model loss analysis.
  • Multi-Query Attention experiments, for details please to multi_query_experiments/README.md)

bigcode-analysis's People

Contributors

bigximik avatar chenghaomou avatar christiancopeland avatar harm-devries avatar loubnabnl avatar lvwerra avatar ocramz avatar paulovn avatar raymondli0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bigcode-analysis's Issues

cannot import AttentionType from gpt2

Loading multi_query_experiments.profile_hf_generate results in

ImportError: cannot import name 'AttentionType' from 'transformers.models.gpt2.modeling_gpt2'

I find this puzzling since this class is not exported by transformers 4.20.0

Are you using a custom fork of transformers by chance?

Broken link

The link to python-all-license is broken in the data analysis readme.

[Near Deduplication] Benchmark

Provide results on large dataset with different near deduplication methods:

  1. minhash + lsh
  2. simhash
  3. any relevant methods

Details to be included:

  • tokenization method
  • method parameters
  • hardware
  • memory usage
  • time
  • duplication results, examples

[Near Deduplication] Tokenization

As we extend deduplication to a wide range of languages, what tokenization method to use will have an impact on the final results.

The current script uses a simple regex and uni-gram to perform minhash calculation. What are the consequences using a different configuration?

Decontamination

Evaluation datasets like mbpp or HumanEval might be contained in the training set.

  • Exact dedup: Remove files containing the exact evaluation code.
  • Near dedup: Some of the tasks resemble popular Leetcode questions, how can we identify them at prompt level?

[Exact Substring Deduplication] Analysis

Near deduplication #7 only operates on file level. It is also possible for a file to be

  1. a substring of another file, while the minhash/simhash fingerprints being wildly different
  2. composed of multiple snippets from different sources

Do we do something about them, knowing they contains large chunks of repeated snippets?

[Near Deduplication] Post processing

The current script building clusters of duplicates, but there are cases it might yield unwanted results:

When doc B is clustered under doc A's name, another doc C can also be clustered into B's name (AB, BC, C!~A), thus when we are deleting non "extreme"s from each cluster, we could end up having both A and B kept in the results.

A better way to delete duplicates is to find community within each connected components. This is used in https://github.com/src-d/gemini.

github scraping speed limit

We have a speed limit for scraping github, repo homepages at least.
From one ip address it is around 2 repo per second, but it is only 2-3 times faster from 20 different IP addresses ( from the same datacenter, toolkit). A lot of status code 429, rate limiting events. I wonder if it is general github policy or or datacenter just got lucky?
Experiment code here https://github.com/bigcode-project/bigcode-analysis/blob/github_scraping_test/data_analysis/github_scraping_test/github_scrapping_test.ipynb

Maybe anyone can run this experiment on their ray cluster or just repeat the test any other way form their range of ip addresses?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.