You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/projects/Breadboard/Phase 2/LM Studio.md
+95-1
Original file line number
Diff line number
Diff line change
@@ -4,5 +4,99 @@ aliases: []
4
4
tags:
5
5
- breadboard/phase/2
6
6
created: 2024-05-31T19:25:49
7
-
modified: 2024-06-12T10:34:26
7
+
modified: 2024-06-13T11:07:40
8
8
---
9
+
10
+
<iframewidth="560"height="315"src="https://www.youtube.com/embed/0qr_Tk39zWg?rel=0"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
11
+
12
+
## Introduction
13
+
14
+
Here we demonstrates the integration of a local language model with a Breadboard using the LM Studio software. Below, we will guide you through the process and explain the functionality of each input parameter.
15
+
16
+
## Objective
17
+
18
+
The goal of this project is to showcase how easy it is to integrate a breadboard with a language model and to provide a step-by-step example using the LM Studio software.
19
+
20
+
## Prerequisites
21
+
22
+
- LM Studio software installed on your local machine.
23
+
- A basic understanding of language models and breadboards.
24
+
25
+
## Inputs and Parameters
26
+
27
+
### 1. Max Tokens
28
+
29
+
-**Description**: Specifies the maximum length of the response generated by the language model.
30
+
-**Example Value**: `-1` (indicating no limit on response length for this example).
31
+
32
+
### 2. Stream
33
+
34
+
-**Description**: A flag that indicates whether the language model should return the response as it is being generated.
35
+
-**Example Value**: `true` or `false`.
36
+
37
+
### 3. System Context
38
+
39
+
-**Description**: Defines the context in which the language model should reply.
40
+
-**Example Value**: `"Professional Chef"` (in this example, the language model responds as a professional chef).
41
+
42
+
### 4. Temperature
43
+
44
+
-**Description**: Adjusts the creativity of the language model's responses. Lower values make the model more deterministic.
45
+
-**Example Value**: `1` (to ensure a balanced response).
46
+
47
+
### 5. User Context
48
+
49
+
-**Description**: The question or command provided to the language model.
50
+
-**Example Value**: `"List the ingredients needed to make a cake."`
51
+
52
+
## Step-by-Step Guide
53
+
54
+
### Step 1: Setting Up Inputs
55
+
56
+
1.**Max Tokens**: Set to `-1` for this example.
57
+
2.**Stream**: Set to `true` or `false` based on your requirement.
58
+
3.**System Context**: Set to `"Professional Chef"`.
59
+
4.**Temperature**: Set to `1` to maintain response consistency.
60
+
5.**User Context**: Enter the question `"List the ingredients needed to make a cake."`
61
+
62
+
### Step 2: Running the Board
63
+
64
+
- Execute the board with the provided inputs.
65
+
- Open LM Studio to observe the response generation in real time.
66
+
67
+
### Step 3: Viewing the Response
68
+
69
+
- The response will be generated word by word if the stream flag is set.
70
+
- Observe the final response in LM Studio or on your board.
71
+
72
+
## Example Output
73
+
74
+
### Request
75
+
76
+
```markdown
77
+
Max Tokens: -1
78
+
Stream: true
79
+
System Context: "Professional Chef"
80
+
Temperature: 1
81
+
User Context: "List the ingredients needed to make a cake."
82
+
```
83
+
84
+
### Response
85
+
86
+
```markdown
87
+
To make a cake, you will need the following ingredients:
88
+
89
+
- Flour
90
+
- Sugar
91
+
- Eggs
92
+
- Butter
93
+
- Baking powder
94
+
- Milk
95
+
- Vanilla extract
96
+
```
97
+
98
+
## Conclusion
99
+
100
+
This example illustrates the simplicity and potential of integrating breadboards with language models using LM Studio. By following the steps outlined above, you can create responsive and contextually aware applications.
101
+
102
+
We hope you found this guide useful. For further inquiries or advanced configurations, feel free to contact our support team.
0 commit comments