|
il y a 4 mois | |
---|---|---|
.. | ||
benchmarks | il y a 4 mois | |
notebooks | il y a 4 mois | |
README.md | il y a 4 mois | |
environment.yml | il y a 4 mois |
The Prompt Migration toolkit helps you assess and adapt prompts across different language models, ensuring consistent performance and reliability. It includes benchmarking capabilities and evaluation tools to measure the effectiveness of prompt migrations.
notebooks/
: Contains Jupyter notebooks for interactive prompt migration examples
harness.ipynb
: Main notebook demonstrating the prompt migration workflowbenchmarks/
: Tools and scripts for performance evaluationenvironment.yml
: Conda environment specification with all required dependenciesConda Environment
Setting Up vLLM for Inference If you plan to use vLLM for model inference:
pip install vllm
To serve a large model (example: Meta’s Llama 3.3 70B Instruct), you might run:
vllm serve meta-llama/Llama-3.3-70B-Instruct --tensor-parallel-size=4
Adjust the model name and --tensor-parallel-size
according to your hardware and parallelization needs.
Accessing Hugging Face Datasets If you need to work with private or gated Hugging Face datasets, follow these steps:
bash
pip install huggingface_hub
bash
huggingface-cli login
bash
conda activate prompt-migration
bash
jupyter notebook
notebooks/harness.ipynb
in your browser to get started.benchmarks/
directory to evaluate your prompt migrations.This project is part of the Llama Recipes collection. Please refer to the main repository’s license for usage terms.