umutkkgz commited on
Commit
345970e
·
verified ·
1 Parent(s): 5c672d4

Upload Think.ipynb

Browse files
Files changed (1) hide show
  1. Think.ipynb +64 -0
Think.ipynb ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": [],
7
+ "gpuType": "T4"
8
+ },
9
+ "kernelspec": {
10
+ "name": "python3",
11
+ "display_name": "Python 3"
12
+ },
13
+ "language_info": {
14
+ "name": "python"
15
+ },
16
+ "accelerator": "GPU"
17
+ },
18
+ "cells": [
19
+ {
20
+ "cell_type": "code",
21
+ "execution_count": null,
22
+ "metadata": {
23
+ "id": "IHBfGGDn7rjw"
24
+ },
25
+ "outputs": [],
26
+ "source": [
27
+ "!pip install -U llama-cpp-python"
28
+ ]
29
+ },
30
+ {
31
+ "cell_type": "code",
32
+ "source": [
33
+ "# !pip install llama-cpp-python\n",
34
+ "\n",
35
+ "from llama_cpp import Llama\n",
36
+ "\n",
37
+ "llm = Llama.from_pretrained(\n",
38
+ "\trepo_id=\"umutkkgz/Kaira-Turkish-Gemma-9B-T1-GGUF\",\n",
39
+ "\tfilename=\"Kaira-Turkish-Gemma-9B-T1-q4_K_M.gguf\",\n",
40
+ ")\n"
41
+ ],
42
+ "metadata": {
43
+ "id": "iESuhOI-72gv"
44
+ },
45
+ "execution_count": null,
46
+ "outputs": []
47
+ },
48
+ {
49
+ "cell_type": "code",
50
+ "source": [
51
+ "llm.create_chat_completion(\n",
52
+ " messages = [\n",
53
+ " {\"role\": \"user\", \"content\": \"naber, nasılsın.\"}\n",
54
+ " ]\n",
55
+ ")"
56
+ ],
57
+ "metadata": {
58
+ "id": "pxrjDO5f77FJ"
59
+ },
60
+ "execution_count": null,
61
+ "outputs": []
62
+ }
63
+ ]
64
+ }