Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
datasets:
|
3 |
+
- heegyu/glaive-function-calling-v2-ko
|
4 |
+
---
|
5 |
+
|
6 |
+
- function call λͺ¨λΈ νμ΅ν΄λ΄€μΌλ νΈμΆ μμ μ μ λλ‘ νμ
νμ§ λͺ»ν¨ γ
..
|
7 |
+
|
8 |
+
# Usage
|
9 |
+
|
10 |
+
```
|
11 |
+
from transformers import pipeline
|
12 |
+
|
13 |
+
|
14 |
+
pipe = pipeline('text-generation', "heegyu/1213-42dot-1.3B-function-calling-v2-2e-5", device="cuda:0", revision="epoch-1")
|
15 |
+
|
16 |
+
print(pipe("""λΉμ μ λ€μκ³Ό κ°μ κΈ°λ₯μ μ κ·Όν μ μλ λμμ΄ λλ AI μ΄μμ€ν΄νΈμ
λλ€. νμνλ€λ©΄ μ΄ κΈ°λ₯λ€μ μ¬μ©νμΈμ
|
17 |
+
{
|
18 |
+
"name": "get_news_headlines",
|
19 |
+
"description": "Get the latest news headlines",
|
20 |
+
"parameters": {
|
21 |
+
"type": "object",
|
22 |
+
"properties": {
|
23 |
+
"country": {
|
24 |
+
"type": "string",
|
25 |
+
"description": "The country for which to fetch news"
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"required": [ "country" ]
|
29 |
+
}
|
30 |
+
}
|
31 |
+
<human>:
|
32 |
+
μ΄μ λ―Έκ΅μμ μΌμ΄λ μ΅μ λ΄μ€κ° μκ³ μΆμ΄
|
33 |
+
<bot>:
|
34 |
+
""",
|
35 |
+
max_new_tokens=128)[0]['generated_text'])
|
36 |
+
```
|
37 |
+
μ€ν κ²°κ³Ό
|
38 |
+
```
|
39 |
+
λΉμ μ λ€μκ³Ό κ°μ κΈ°λ₯μ μ κ·Όν μ μλ λμμ΄ λλ AI μ΄μμ€ν΄νΈμ
λλ€. νμνλ€λ©΄ μ΄ κΈ°λ₯λ€μ μ¬μ©νμΈμ
|
40 |
+
{
|
41 |
+
"name": "get_news_headlines",
|
42 |
+
"description": "Get the latest news headlines",
|
43 |
+
"parameters": {
|
44 |
+
"type": "object",
|
45 |
+
"properties": {
|
46 |
+
"country": {
|
47 |
+
"type": "string",
|
48 |
+
"description": "The country for which to fetch news"
|
49 |
+
}
|
50 |
+
},
|
51 |
+
"required": [ "country" ]
|
52 |
+
}
|
53 |
+
}
|
54 |
+
<human>:
|
55 |
+
μ΄μ λ―Έκ΅μμ μΌμ΄λ μ΅μ λ΄μ€κ° μκ³ μΆμ΄
|
56 |
+
<bot>:
|
57 |
+
<function-call>{"name": "get_news_headlines", "arguments": '{"country": "United States"}'}</function-call>
|
58 |
+
```
|