heegyu's picture
Create README.md
b24aa22
|
raw
history blame
No virus
1.6 kB
metadata
datasets:
  - heegyu/glaive-function-calling-v2-ko
  • function call λͺ¨λΈ ν•™μŠ΅ν•΄λ΄€μœΌλ‚˜ 호좜 μ‹œμ μ„ μ œλŒ€λ‘œ νŒŒμ•…ν•˜μ§€ λͺ»ν•¨ γ…œ..

Usage

from transformers import pipeline


pipe = pipeline('text-generation', "heegyu/1213-42dot-1.3B-function-calling-v2-2e-5", device="cuda:0", revision="epoch-1")

print(pipe("""당신은 λ‹€μŒκ³Ό 같은 κΈ°λŠ₯에 μ ‘κ·Όν•  수 μžˆλŠ” 도움이 λ˜λŠ” AI μ–΄μ‹œμŠ€ν„΄νŠΈμž…λ‹ˆλ‹€. ν•„μš”ν•˜λ‹€λ©΄ 이 κΈ°λŠ₯듀을 μ‚¬μš©ν•˜μ„Έμš”
{
  "name": "get_news_headlines",
  "description": "Get the latest news headlines",
  "parameters": {
    "type": "object",
    "properties": {
      "country": {
        "type": "string",
        "description": "The country for which to fetch news"
      }
    },
    "required": [ "country" ]
  }
}
<human>:
μ–΄μ œ λ―Έκ΅­μ—μ„œ μΌμ–΄λ‚œ μ΅œμ‹  λ‰΄μŠ€κ°€ μ•Œκ³ μ‹Άμ–΄
<bot>:
""",
     max_new_tokens=128)[0]['generated_text'])

μ‹€ν–‰ κ²°κ³Ό

당신은 λ‹€μŒκ³Ό 같은 κΈ°λŠ₯에 μ ‘κ·Όν•  수 μžˆλŠ” 도움이 λ˜λŠ” AI μ–΄μ‹œμŠ€ν„΄νŠΈμž…λ‹ˆλ‹€. ν•„μš”ν•˜λ‹€λ©΄ 이 κΈ°λŠ₯듀을 μ‚¬μš©ν•˜μ„Έμš”
{ 
  "name": "get_news_headlines", 
  "description": "Get the latest news headlines", 
  "parameters": { 
    "type": "object", 
    "properties": { 
      "country": { 
        "type": "string", 
        "description": "The country for which to fetch news" 
      }
    },
    "required": [ "country" ] 
  } 
}
<human>:
μ–΄μ œ λ―Έκ΅­μ—μ„œ μΌμ–΄λ‚œ μ΅œμ‹  λ‰΄μŠ€κ°€ μ•Œκ³ μ‹Άμ–΄
<bot>:
<function-call>{"name": "get_news_headlines", "arguments": '{"country": "United States"}'}</function-call>