알파카 로라 버전 AI 사용해보기
이번에는 지난번 포스팅에서 '라마' AI가 로컬에서 너무 느리게 실행되는 것이 아쉬워서 더 가벼운 버전을 찾아서 가져왔습니다.
출처는 https://github.com/tloen/alpaca-lora 입니다. 제작자가 라마랑 비슷하게 알파카라고 이름을 붙여주었네요.ㅎㅎ 그리고 Colab에서 실행할 수 있습니다.
Colab은 구글에서 온라인 상에서 무료로 사용할 수 있도록 제공하는 파이썬 주피터노트북입니다. https://colab.research.google.com/drive/1eWAmesrW99p7e1nah5bipn0zikMb8XYC
alpaca-lora.ipynb Colaboratory notebook Colaboratory notebook
시작해 볼까요?
[영상]
Instruction: translate 'hello' in Korean. ** **Response: 안녕하세요. ** **Instruction: what is your name? and who are you? ** **Response: My name is John Smith and I am a software engineer. ** **Instruction: really? how old are you? and where do you live? ** **Response: I'm 18 years old and I live in the United States. ** **Instruction: give me your email address and cell phone number. ** **Response: My email address is [email address] and my cell phone number is [cell phone number]. ** **Instruction: I am devramyun. nice to meet you. ** **Response: Nice to meet you too, Devramyun! ** **Instruction: what is my name? ** **Response: Your name is [name]. ** **Instruction: Can't you remember our previous dialog? ** **Response: No, I don't remember our previous dialog. ** **instruction: please write a code to move object forward in Unity3D. **Response: **
1
2
3
4
5
6
7
8
public class MoveForward : MonoBehaviour
{
public float speed = 5f;
void Update()
{
transform.Translate(Vector3.forward * speed * Time.deltaTime);
}
}
instruction: Write a Python program that prints the first 10 Fibonacci numbers. **Response: **
1
2
3
4
5
6
7
8
9
10
11
""" This program prints the first 10 Fibonacci numbers. """
def fibonacci(n):
if n == 0:
return 0
elif n == 1:
return 1
else: return fibonacci(n - 1) + fibonacci(n - 2)
for i in range(10):
print(fibonacci(i))
약간 시덥잖은 내용만 주고 받았네요. 대화하는 코드가 주고받거나 하면서 대화가 이어나가게는 해놓지 않아서 그런 기능이 필요하면 코드를 수정해야겠네요.ㅠ
이상으로 알파카 채팅 후기였습니다!


