From dc56b572b4713927415a772690257f75533a56de Mon Sep 17 00:00:00 2001 From: John Matthews Date: Wed, 31 Jan 2024 12:09:41 -0500 Subject: [PATCH] Adding trunk check to run on PRs (#9) * Adding paper links * Run trunk check on PRs Signed-off-by: John Matthews --------- Signed-off-by: John Matthews --- .github/workflows/trunk-check-annotations.yml | 24 +++++++++++++++++++ .github/workflows/trunk-check.yml | 22 +++++++++++++++++ Notes.md | 10 +++++--- 3 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/trunk-check-annotations.yml create mode 100644 .github/workflows/trunk-check.yml diff --git a/.github/workflows/trunk-check-annotations.yml b/.github/workflows/trunk-check-annotations.yml new file mode 100644 index 00000000..024fc32d --- /dev/null +++ b/.github/workflows/trunk-check-annotations.yml @@ -0,0 +1,24 @@ +name: Annotate PR with trunk issues + +on: + workflow_run: + workflows: [Trunk Check] + types: [completed] + +permissions: read-all + +jobs: + trunk_check_annotate_pr: + name: Trunk Check PR Annotation + runs-on: ubuntu-latest + permissions: + checks: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Trunk Check + uses: trunk-io/trunk-action@v1 + with: + post-annotations: true diff --git a/.github/workflows/trunk-check.yml b/.github/workflows/trunk-check.yml new file mode 100644 index 00000000..75947ca3 --- /dev/null +++ b/.github/workflows/trunk-check.yml @@ -0,0 +1,22 @@ +name: Trunk Check +on: [pull_request] +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: read-all + +jobs: + trunk_check: + name: Trunk Check Runner + runs-on: ubuntu-latest + permissions: + checks: write # For trunk to post annotations + contents: read # For repo checkout + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Trunk Check + uses: trunk-io/trunk-action@v1 diff --git a/Notes.md b/Notes.md index 5599aa9a..df9c7b44 100644 --- a/Notes.md +++ b/Notes.md @@ -11,14 +11,18 @@ Some recent approaches use static analysis (Shrivastava et al., 2022; Ding et al., 2022; Pei et al., 2023) or retrieval (Zhang et al., 2023) to extract relevant code fragments from the global context. These approaches expand the prompt (Shrivastava et al., 2022; Pei et al., 2023; Zhang et al., 2023) or require architecture modifications (Ding et al., 2022) and additional training (Ding et al., 2022; Pei et al., 2023). In comparison, we provide token-level guidance to a frozen LM by invoking static analysis on demand. Our method is complementary to these approaches as they condition the generation by modifying the input to the LM, whereas we apply output-side constraints by reshaping the logits. -- [RepoFusion: Training Code Models to Understand - Your Repository](https://arxiv.org/pdf/2306.10998.pdf) +- [RepoFusion: Training Code Models to Understand Your Repository](https://arxiv.org/pdf/2306.10998.pdf) - [RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculture](https://arxiv.org/abs/2401.08406) - [QUANTIFYING LANGUAGE MODELS’ SENSITIVITY TO SPURIOUS FEATURES IN PROMPT DESIGN or: How I learned to start worrying about prompt formatting](https://arxiv.org/pdf/2310.11324.pdf) +- [LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuning](https://arxiv.org/pdf/2308.11148v2.pdf) -## Interestig Blog Posts/Examples/Tutorials +## Interesting Blog Posts/Examples/Tutorials - [ReAct: Synergizing Reasoning and Acting in Language Models](https://react-lm.github.io/) - [Fine-Tune LLaMA 2 with QLoRA](https://colab.research.google.com/drive/1Zmaceu65d7w4Tcd-cfnZRb6k_Tcv2b8g?usp=sharing) - From: https://github.com/smol-ai/llama-fine-tuning-hackameetup/tree/main#getting-started - [Codebase Analysis: Langchain Agents](https://carbonated-yacht-2c5.notion.site/Codebase-Analysis-Langchain-Agents-0b0587acd50647ca88aaae7cff5df1f2) + +## Interesting Projects + +- [LLMLingua: Enhancing Large Language Model Inference via Prompt Compression](https://github.com/microsoft/LLMLingua)