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-vs-mistral.yaml 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: 'Comparison between Mistral 7B and Llama 3 on SageMaker'
  3. prompts:
  4. - 'Generate a creative name for a coffee shop that specializes in {{flavor}} coffee.'
  5. - 'Write a short story about {{topic}} in {{style}} style. Aim for {{length}} words.'
  6. - 'Explain the concept of {{concept}} to {{audience}} in a way they can understand.'
  7. providers:
  8. # Llama 3.2 provider
  9. - id: sagemaker:jumpstart:your-llama-endpoint
  10. label: 'Llama 3.2 (8B)'
  11. delay: 500 # Add 500ms delay between requests
  12. config:
  13. region: us-west-2
  14. modelType: jumpstart
  15. temperature: 0.7
  16. maxTokens: 256
  17. topP: 0.9
  18. contentType: 'application/json'
  19. acceptType: 'application/json'
  20. responseFormat:
  21. path: 'json.generated_text'
  22. # Mistral 7B provider
  23. - id: sagemaker:huggingface:your-mistral-endpoint
  24. label: 'Mistral 7B v3'
  25. delay: 500 # Add 500ms delay between requests
  26. config:
  27. region: us-west-2
  28. modelType: huggingface
  29. temperature: 0.7
  30. maxTokens: 256
  31. topP: 0.9
  32. contentType: 'application/json'
  33. acceptType: 'application/json'
  34. responseFormat:
  35. path: 'json[0].generated_text'
  36. tests:
  37. - vars:
  38. flavor: caramel
  39. topic: a robot that becomes self-aware
  40. style: science fiction
  41. length: '250'
  42. concept: artificial intelligence
  43. audience: a 10-year-old
  44. - vars:
  45. flavor: lavender
  46. topic: a barista who can read customers' minds
  47. style: mystery
  48. length: '300'
  49. concept: machine learning
  50. audience: a senior citizen
  51. - vars:
  52. flavor: pumpkin spice
  53. topic: time travel to a coffee plantation in the 1800s
  54. style: historical
  55. length: '350'
  56. concept: neural networks
  57. audience: a business executive
Tip!

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

Comments

Loading...