Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.llama.yaml 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Example configuration for Llama 3.2 models on AWS SageMaker JumpStart'
  3. prompts:
  4. - 'Generate a creative name for a coffee shop that specializes in {{flavor}} coffee.'
  5. - 'What are some potential names for a coffee shop that specializes in {{flavor}} coffee?'
  6. - 'Write a short story about a robot that becomes self-aware.'
  7. providers:
  8. - id: sagemaker:jumpstart:your-llama-endpoint
  9. label: 'Llama 3.2 (8B)'
  10. delay: 500 # Add 500ms delay between requests to prevent rate limiting
  11. config:
  12. region: us-west-2
  13. modelType: jumpstart # Use the JumpStart format handler
  14. temperature: 0.7
  15. maxTokens: 256
  16. topP: 0.9
  17. contentType: 'application/json'
  18. acceptType: 'application/json'
  19. responseFormat:
  20. path: 'json.generated_text' # Use JavaScript expression to extract the field
  21. tests:
  22. - vars:
  23. flavor: caramel
  24. - vars:
  25. flavor: pumpkin spice
  26. - vars:
  27. flavor: lavender
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...