
Ling Jiang retweeted
🚀🚀 Announcing Inf-CLIP: A highly memory-efficient framework
🔑🔑 Key Features:
- Multi-level tiling for optimized memory usage (& almost no loss on training efficiency)
- 78x (batch size=256K) and 281x (batch size=1M) memory cost reduction over OpenCLIP, without sacrificing accuracy
- Support up to 4M batch size on 8*A800s and 12M on 32*A800s
Paper: huggingface.co/papers/2410.1…
Github: github.com/DAMO-NLP-SG/Inf-C…
Pypi: pypi.org/project/inf-cl/
If you are at @ICSEconf, come check out our binary sca tool 🚩BinaryAI developed by @keen_lab.
Try it now at 🖥️ binaryai.net
#icse2024 #ICSE
dl.acm.org/doi/10.1145/35975…
BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching | Proceedings of the IEEE/ACM 46th International Conference on Software Engineering dl.acm.org/doi/10.1145/35975…
Ling Jiang retweeted
RAG From Scratch: Video series focused on understanding the RAG landscape
RAG is central for LLM application development, connecting LLMs to external data sources.
But, the pace of innovation and new approaches makes it challenging to keep up.
We're launching a new video series, RAG From Scratch, that will organize and walk-through the landscape of RAG concepts and methods.
It will feature short, ~5 min videos focused on specific methods / concepts with code examples and will start from the very basics.
It will build up to an understanding of the RAG state of the art (show in the landscape map below).
First video (we'll be adding to this playlist):
youtube.com/watch?v=wd7TZ4w1…
Ling Jiang retweeted
Three-levels of Text-to-SQL 🪜
Building sophisticated text-to-SQL is way more than a simple prompt, and actually you can combine RAG concepts into the text-to-SQL process to enabling querying over a large collection of tables in a robust manner.
Here’s a brand-new tutorial that highlights these three levels:
1️⃣ Basic text-to-pandas / SQL: classic prompt that does symbolic generation, executes the query, and synthesizes the result
2️⃣ Query-time table retrieval in text-to-SQL prompt: Do vector indexing/retrieval of tables in text-to-SQL. Enables scaling to more tables
3️⃣ Query-time row retrieval in text-to-SQL prompt: Do vector indexing/retrieval of rows in text-to-SQL. Enables better example selection == robust queries.
Inspired to make this after seeing cool tools like @vannadotai take off that made use of these concepts.
Video: youtube.com/watch?v=L1o1VPVf…
Colab: colab.research.google.com/dr…
Advanced QA over a lot of Tabular Data (combine text-to-SQL with RAG) 📊🪄
Our brand-new mini course 🧑🏫 is a comprehensive overview of how you can build simple-to-advanced query pipelines from scratch, by composing components into complex DAGs. Presenting this in three levels:
1️⃣ Basic text-to-pandas / SQL
2️⃣ Query-time table retrieval in text-to-SQL prompt
3️⃣ Query-time row retrieval in text-to-SQL prompt
Steps 2 and 3 introduce RAG concepts by vectorizing the tables and rows for few-shot example selection.
Adding on these layers ensures that your pipeline can scale to more tables (table retrieval), and that your queries are less prone to failure with the right examples.
Uses WikiTableQuestions as a dataset (@IcePasupat et al.)
Logged with @ArizePhoenix tracing (works with any of our observability partners).
Video (part 2 of our advanced RAG orchestration series): youtube.com/watch?v=L1o1VPVf…
Colab: colab.research.google.com/dr…
Source docs:
SQL: docs.llamaindex.ai/en/stable…
Pandas: docs.llamaindex.ai/en/stable…
Ling Jiang retweeted
Everyone can fine-tune LLMs on a single GPU.
The stack, for making training as memory-efficient as possible:
• DeepSpeed
• 8-bit optimizers
• Gradient checkpointing
• Mixed-precision training
• @huggingface PEFT (to use LoRA)
I've trained 20B+ models on a 24GB GPU!
Ling Jiang retweeted
You’re a great engineer if you know the definition of:
- idempotent
- monoid
- decoupled
- dependency injection
- unit
- functional programming
- asynchronous vs parallel programming
- thread locking
- eventual consistency
- exactly-once semantics
- lambda vs kappa architecture
- push vs pull architectures
- write-audit-publish pattern
What else would you add?
#dataengineering
#softwareengineering
Ling Jiang retweeted
#Fuzzing
"Evaluating and Improving Hybrid Fuzzing", 2023.
]-> github.com/Tricker-z/CoFuzz
Ling Jiang retweeted
This is my day-to-day hacking tool stack:
🛠️ Burp
🛠️ Nmap
🛠️ @securitytrails
🛠️ @Shodanhq
🛠️ @spiderfoot
🛠 @ipinfoio
🛠️ My own tools (github.com/hakluke)
🛠️ Everything by @pdiscoveryio
🛠️ Everything by @tomnomnom
That covers about 99% of my hacking 🤷♂️
Ling Jiang retweeted
A while back I'd done some shallow reverse engineering of Copilot
Now I've done a deeper dive into Copilot's internals, built a tool to explore its code, and wrote a blog answering specific questions and pointing out some tidbits.
thakkarparth007.github.io/co…
Do read, might be fun!
Replying to @moyix
I scanned through the minified extension.js file & found a few interesting things. Everything's an educated guess:
Prompt length=2048
Prompt includes:
- Language ID
- Up to 20 files of same language. Sorted by access time.
- relative paths of files included
- Github repo name
Ling Jiang retweeted
Evaluating LLMs is notoriously difficult, and academic benchmarks may fail.
Inspired by chess and MOBA games, we are taking a new approach by calculating Elo ratings of models with crowdsourced battle data.
- Blog: lmsys.org/blog/2023-05-03-ar…
- Leaderboard: leaderboard.lmsys.org
Ling Jiang retweeted
3 papers to understand transformers/LLMs
1. Formal Algorithms for Transformers @DeepMind
2. A Survey of Large Language Models
3. Transformer models @xamat
🧵
Ling Jiang retweeted
This is a baby GPT with two tokens 0/1 and context length of 3, viewing it as a finite state markov chain. It was trained on the sequence "111101111011110" for 50 iterations. The parameters and the architecture of the Transformer modifies the probabilities on the arrows.
E.g. we can see that:
- state 101 deterministically transitions to 011 in the training data, so the probability of that transition becomes higher (79%). Not near 100% because we only did 50 steps of optimization.
- state 111 goes to 111 and 110 with 50% probability each, which the model almost learns (45%, 55%).
- states like 000 are never encountered during training, but have relatively sharp transition probabilities, e.g. 73% of going to 001. This is a consequence of inductive biases in the Transformer. One might imagine wanting this to be 50%, except in a real deployment almost every input sequence is unique, not present in the training data verbatim.
Not really sure where I was going with this :D, I think it's interesting to train/study tiny GPTs because it becomes tractable to visualize and get an intuitive sense of the entire dynamical system. Play with here: colab.research.google.com/dr…
























