heegyu commited on
Commit
b24aa22
β€’
1 Parent(s): c8a6cf9

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -0
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
+ ```