Spaces:
Sleeping
Sleeping
stefanches7
commited on
Commit
·
1175e23
1
Parent(s):
18457d6
remove CoT local test code
Browse files- smol-data-desc.py +0 -3
smol-data-desc.py
CHANGED
|
@@ -2,7 +2,4 @@ import dspy
|
|
| 2 |
|
| 3 |
lm = dspy.LM("ollama/alibayram/smollm3", api_base="http://127.0.0.1:11434", api_key="")
|
| 4 |
dspy.configure(lm=lm)
|
| 5 |
-
math = dspy.ChainOfThought("question -> answer: float")
|
| 6 |
-
print(math(question="Two dice are tossed. What is the probability that the sum equals two?"))
|
| 7 |
-
|
| 8 |
print(lm(messages=[{"role": "user", "content": "Say this is a test!"}])) # => ['This is a test!']
|
|
|
|
| 2 |
|
| 3 |
lm = dspy.LM("ollama/alibayram/smollm3", api_base="http://127.0.0.1:11434", api_key="")
|
| 4 |
dspy.configure(lm=lm)
|
|
|
|
|
|
|
|
|
|
| 5 |
print(lm(messages=[{"role": "user", "content": "Say this is a test!"}])) # => ['This is a test!']
|