TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Automatically convert your GPT-3.5 prompt to Llama 2

13 pointsby kcorbittalmost 2 years ago
Hey HN! I&#x27;m working on OpenPipe, an open source prompt workshop. I wanted to share a feature we recently released: prompt translations. Prompt translations allow you to quickly convert a prompt between GPT 3.5, Llama 2, and Claude 1&#x2F;2 compatible formats. The common case would be if you’re using GPT 3.5 in production and are interested in evaluating a Claude or Llama 2 model for your use case. Here&#x27;s a screen recording to show how it works in our UI: https:&#x2F;&#x2F;twitter.com&#x2F;OpenPipeLab&#x2F;status&#x2F;1687875354311180288<p>We’ve found a lot of our users are interested in evaluating Claude or Llama 2, but weren’t sure what changes they need to make to their prompts to get the best performance out of those models. Prompt translations make that easier.<p>A bit more background: OpenPipe is an open-source prompt studio that lets you test your LLM prompts against scenarios from your real workloads. We currently support GPT 3.5&#x2F;4, Claude 1&#x2F;2, and Llama 2. The full codebase (including prompt translations) is available at https:&#x2F;&#x2F;github.com&#x2F;OpenPipe&#x2F;OpenPipe. If you’d prefer a managed experience, you can also sign up for our hosted version at at https:&#x2F;&#x2F;openpipe.ai&#x2F;.<p>Happy to answer any questions!

2 comments

richbradshawalmost 2 years ago
The thing I’m keen for is keeping my open ai function definitions and having Claude (or Llama) return the same “do this function call with these arguments” syntax. Needs a little prompting to do it but by hand it works just need a wrapper so I can talk to Claude with same inputs as functions as Open AI. Does this do that?
tikkunalmost 2 years ago
Nice!<p>So it sounds like this takes a GPT formatted prompt and adds all that Llama 2 prompt template stuff (&lt;s&gt;, [INST], etc) is that right?<p>I&#x27;m guessing no conversion is needed between GPT-3.5 and Claude 1&#x2F;2, but I&#x27;d like to know whether that&#x27;s right or not too.