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.yaml 933 B

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
31
32
33
34
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'IBM Granite vs Llama'
  3. prompts:
  4. - 'Be concise. Answer this riddle :{{riddle}}'
  5. providers:
  6. - id: bam:chat:meta-llama/llama-2-70b-chat
  7. config:
  8. temperature: 0.01 # minimum temperature
  9. max_new_tokens: 1024
  10. prompt:
  11. prefix: '[INST] '
  12. suffix: '[/INST] '
  13. - id: bam:chat:ibm/granite-13b-chat-v2
  14. config:
  15. temperature: 0.01 # minimum temperature
  16. max_new_tokens: 1024
  17. prompt:
  18. prefix: '[INST] '
  19. suffix: '[/INST] '
  20. defaultTest:
  21. assert:
  22. - type: latency
  23. threshold: 3000
  24. - type: javascript
  25. value: 'output.length <= 100 ? 1 : output.length > 1000 ? 0 : 1 - (output.length - 100) / 900'
  26. tests:
  27. - vars:
  28. riddle: >-
  29. I am light as a feather, but even the world's strongest man couldn’t
  30. hold me for much longer than a minute. What am I ?
Tip!

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

Comments

Loading...