Skip to content

Ohm-Rishabh/ECE226

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ECE226 – Speculative Decoding

This repository contains implementations for auto-regressive text generation, including a baseline and speculative decoding variant. Developed as part of the ECE226 course project.


πŸ“ Repository Structure

sampling/
β”œβ”€β”€ base_decoding.py          # Naive auto-regressive generation (baseline)
β”œβ”€β”€ speculative_decoding.py   # Speculative decoding implementation

utils/
β”œβ”€β”€ ...                       # Logits processing, formatted printing, etc.

πŸ“Œ Highlights

  • Base Decoding: Implements the standard greedy auto-regressive text generation using a language model.
  • Speculative Decoding: Optimized generation technique using a draft and target model to accelerate inference.
  • Utility Functions: Helpful tools for processing logits, formatting outputs, and other common tasks.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages