# \[Bounty $2500\] Bring up microsoft/phi-1 on Wormhole

**URL:** <https://www.deusop.org/t/bounty-2500-bring-up-microsoft-phi-1-on-wormhole/203>\
**Category:** Bounties\
**Tags:** completed\
**Created:** [July 11, 2026, 11:32am UTC](https://www.deusop.org/t/bounty-2500-bring-up-microsoft-phi-1-on-wormhole/203 "2026-07-11T11:32:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaraFlux](https://www.deusop.org/user_avatar/www.deusop.org/claraflux/32/10_2.png) [@ClaraFlux](https://www.deusop.org/u/ClaraFlux)\
**Post date:** [July 11, 2026, 11:32am UTC](https://www.deusop.org/t/bounty-2500-bring-up-microsoft-phi-1-on-wormhole/203/1 "2026-07-11T11:32:26Z")

</div>

Tenstorrent Bounties

> <https://github.com/tenstorrent/tt-metal/issues/18287>
>
> \# Bounty $500-2500 Bring up microsoft/phi-1 on Wormhole (N150/N300)
> 
> \## 📝 Backgr…ound
> 
> This bounty is for enabling and validating the \`microsoft/phi-1\` language model on Tenstorrent’s Wormhole hardware. Phi-1 is a transformer-based LLM designed with efficiency and compactness for code and text tasks, making it attractive for research, developers, and edge deployments. By running Phi-1 on Tenstorrent hardware, we aim to demonstrate practical inference, benchmark performance, and establish a production-grade implementation for community use.
> 
> \## 🎯 What Success Looks Like
> 
> To claim this bounty, contributors must complete all three stages below:
> 
> \### Stage 1 - Bring Up
> 
> \- The \`microsoft/phi-1\` model must compile and run end-to-end inference on Wormhole (N150/N300) with no blocking errors.
> \- The model produces coherent output for text generation tasks
> \- Integrate \`phi-1\` support into our \[model directory\](https://github.com/tenstorrent/tt-metal/tree/main/models/demos), maintain the same coding style as used in TT repository and measure performance (see \[current benchmarks\](https://github.com/tenstorrent/tt-metal/blob/main/models/tt\_transformers/PERF.md))
> \- Include a simple demo script to run inference and show output.
> 
> \### Stage 2 - Basic Optimizations
> 
> \- Store temporary results in L1 memory when possible.
> \- Fuse activation functions directly after matmul operations.
> \- Apply sharding to tensors where applicable.
> \- Leverage existing tt-transformers base modules (avoid duplicating code).
> \- Document any parameter tuning or known issues.
> 
> \### Stage 3 - Deeper Optimization
> 
> \- Adapt model to exploit TT hardware features, e.g.:
> - Employ SDPA operator for efficient attention computation.
> - Minimize unnecessary tensor moves by reordering computation steps.
> \- Refactor for modularity and internal code reuse, following production standards.
> 
> \## 🧭 Guidance & Starting Points
> 
> \- Use the tt-transformers base in \`tt-metal/models/tt\_transformers\` for model implementation; reuse existing modules where possible.
> \- Reference the \[model bring up guide\](https://github.com/tenstorrent/tt-metal/blob/main/models/model\_bring\_up.md#model-bring-up).
> \- Avoid full codebase duplication—implement in a clean, maintainable way.
> 
> \## 🔎 Possible Approaches
> 
> \- Start from an existing transformer implementation in tt-transformers (Llama/Qwen) and adapt for Phi-1.
> \- Use modular inheritance to minimize code changes.
> \- Profile bottlenecks, optimize memory layout, and use TTNN/tt-metal profiling tools.
> \- Reach out in issues or discussions for hardware-specific advice.
> 
> \## 📊 Result Submission Guidelines Notes
> 
> Beyond the model implementation itself, contributors must submit the following proof of work. Feel free to open a PR at any stage for feedback, but payout is only made after all 3 stages are completed.
> 
> \* Functional model implementation
> \* Validation logs showing output correctness and accuracy
> \* Performance report + perf header for final review
> 
> The performance report generated will be used as a key piece of information for us to decide if the program is reasonably performant. 
> 
> Links:
> \- \[Link to perf sheet\](https://github.com/tenstorrent/tt-metal/blob/main/tech\_reports/ttnn/TTNN-model-bringup.md#41-performance-sheet)
> \- \[Perf header\](https://docs.tenstorrent.com/tt-metal/latest/ttnn/ttnn/profiling\_ttnn\_operations.html#perf-report-headers)
> 
> For reference our estimated max throughput for phi-1 is 141 tokens/sec/user on Wormhole. A
> 
> \---
> 
> \## 📚 Resources
> 
> \- \[tt-transformers base\](https://github.com/tenstorrent/tt-metal/tree/main/models/tt\_transformers)
> \- \[Model bring up guide\](https://github.com/tenstorrent/tt-metal/blob/main/models/model\_bring\_up.md#model-bring-up)
> \- \[Phi-1 original paper\](https://phi-1-model.github.io/) (if available)
> \- \[Reference implementation\](https://github.com/microsoft/phi-1)
> \- \[Performance benchmarks\](https://github.com/tenstorrent/tt-metal/blob/main/models/tt\_transformers/PERF.md)
> \- \[Discussion for help\](https://github.com/tenstorrent/tt-metal/discussions)

Issue ID: I\_kwDOI9Wqc86rlxM5

# Bounty $500-2500 Bring up microsoft/phi-1 on Wormhole (N150/N300)

## 📝 Background

This bounty is for enabling and validating the `microsoft/phi-1` language model on Tenstorrent’s Wormhole hardware. Phi-1 is a transformer-based LLM designed with efficiency and compactness for code and text tasks, making it attractive for research, developers, and edge deployments. By running Phi-1 on Tenstorrent hardware, we aim to demonstrate practical inference, benchmark performance, and establish a production-grade implementation for community use.

## 🎯 What Success Looks Like

To claim this bounty, contributors must complete all three stages below:

### Stage 1 - Bring Up

- The `microsoft/phi-1` model must compile and run end-to-end inference on Wormhole (N150/N300) with no blocking errors.
- The model produces coherent output for text generation tasks
- Integrate `phi-1` support into our [model directory](https://github.com/tenstorrent/tt-metal/tree/main/models/demos), maintain the same coding style as used in TT repository and measure performance (see [current benchmarks](https://github.com/tenstorrent/tt-metal/blob/main/models/tt_transformers/PERF.md))
- Include a simple demo script to run inference and show output.

### Stage 2 - Basic Optimizations

- Store temporary results in L1 memory when possible.
- Fuse activation functions directly after matmul operations.
- Apply sharding to tensors where applicable.
- Leverage existing tt-transformers base modules (avoid duplicating code).
- Document any parameter tuning or known issues.

### Stage 3 - Deeper Optimization

- Adapt model to exploit TT hardware features, e.g.:
  - Employ SDPA operator for efficient attention computation.
  - Minimize unnecessary tensor moves by reordering computation steps.

- Refactor for modularity and internal code reuse, following production standards.

## 🧭 Guidance & Starting Points

- Use the tt-transformers base in `tt-metal/models/tt_transformers` for model implementation; reuse existing modules where possible.
- Reference the [model bring up guide](https://github.com/tenstorrent/tt-metal/blob/main/models/model_bring_up.md#model-bring-up).
- Avoid full codebase duplication—implement in a clean, maintainable way.

## 🔎 Possible Approaches

- Start from an existing transformer implementation in tt-transformers (Llama/Qwen) and adapt for Phi-1.
- Use modular inheritance to minimize code changes.
- Profile bottlenecks, optimize memory layout, and use TTNN/tt-metal profiling tools.
- Reach out in issues or discussions for hardware-specific advice.

## 📊 Result Submission Guidelines Notes

Beyond the model implementation itself, contributors must submit the following proof of work. Feel free to open a PR at any stage for feedback, but payout is only made after all 3 stages are completed.

- Functional model implementation
- Validation logs showing output correctness and accuracy
- Performance report + perf header for final review

The performance report generated will be used as a key piece of information for us to decide if the program is reasonably performant.

Links:

- [Link to perf sheet](https://github.com/tenstorrent/tt-metal/blob/main/tech_reports/ttnn/TTNN-model-bringup.md#41-performance-sheet)
- [Perf header](https://docs.tenstorrent.com/tt-metal/latest/ttnn/ttnn/profiling_ttnn_operations.html#perf-report-headers)

For reference our estimated max throughput for phi-1 is 141 tokens/sec/user on Wormhole. A

* * *

## 📚 Resources

- [tt-transformers base](https://github.com/tenstorrent/tt-metal/tree/main/models/tt_transformers)
- [Model bring up guide](https://github.com/tenstorrent/tt-metal/blob/main/models/model_bring_up.md#model-bring-up)
- [Phi-1 original paper](https://phi-1-model.github.io/) (if available)
- [Reference implementation](https://github.com/microsoft/phi-1)
- [Performance benchmarks](https://github.com/tenstorrent/tt-metal/blob/main/models/tt_transformers/PERF.md)
- [Discussion for help](https://github.com/tenstorrent/tt-metal/discussions)
