itsrocchi commited on
Commit
1f60be9
·
1 Parent(s): 4bc5150

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -1
README.md CHANGED
@@ -43,7 +43,7 @@ The following repository contains scripts and instructions used for the finetuni
43
 
44
  **[https://github.com/itsrocchi/finetuning-llama2-ita.git](https://github.com/itsrocchi/finetuning-llama2-ita.git)**
45
 
46
- ### Inference
47
 
48
  here's a little python snippet to perform inference
49
 
@@ -72,6 +72,33 @@ output = model.generate(**inputs, streamer=streamer, use_cache=True, max_new_tok
72
  output_text = tokenizer.decode(output[0], skip_special_tokens=True)
73
  ```
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  ### Training Data and Details
76
 
77
  The dataset used is [seeweb/Seeweb-it-292-forLLM](https://huggingface.co/datasets/seeweb/Seeweb-it-292-forLLM), a dataset containing approx. 300 italian prompt-answer conversations.
 
43
 
44
  **[https://github.com/itsrocchi/finetuning-llama2-ita.git](https://github.com/itsrocchi/finetuning-llama2-ita.git)**
45
 
46
+ ### Inference and confrontation w/LLama 2
47
 
48
  here's a little python snippet to perform inference
49
 
 
72
  output_text = tokenizer.decode(output[0], skip_special_tokens=True)
73
  ```
74
 
75
+ #### Output finetuned model:
76
+
77
+ ```bash
78
+ L'intelligenza artificiale è un campo di studio che si occupa di creare sistemi che possono imparare, raffinare e prendere decisioni come gli esseri umani. Questi sistemi possono essere utilizzati in molte applicazioni, come la robotica, la visione artificiale, il machine learning e l'elaborazione del linguaggio naturale.
79
+ ```
80
+
81
+ #### Output LLama 2:
82
+
83
+ ```bash
84
+ Certainly, I'd be happy to help you understand what artificial intelligence (AI) is!
85
+ Artificial intelligence (AI) refers to the development of computer systems that can perform tasks that typically require human intelligence, such as learning, problem-solving, decision-making, and perception. AI systems use algorithms and machine learning techniques to analyze data, make predictions, and take actions based on that data.
86
+ There are several types of AI, including:
87
+
88
+ Narrow or weak AI: This type of AI is designed to perform a specific task, such as playing chess or recognizing faces. Narrow AI is the most common form of AI and is used in many applications, such as virtual assistants, language translation, and image recognition.
89
+ General or strong AI: This type of AI is designed to perform any intellectual task that a human can. General AI has the potential to revolutionize many industries, including healthcare, finance, and education.
90
+ Superintelligence: This type of AI is significantly more intelligent than the best human minds. Superintelligence could potentially solve complex problems that are currently unsolvable, but it also raises concerns about safety and control.
91
+ Some examples of AI include:
92
+ Self-driving cars: These vehicles use a combination of sensors and machine learning algorithms to navigate roads and avoid obstacles.
93
+ Virtual assistants: These AI-powered tools, such as Amazon's Alexa and Google Assistant, can perform tasks such as scheduling appointments, setting reminders, and controlling smart home devices.
94
+ Language translation: AI systems can translate text and speech in real-time, allowing for more effective communication between people who speak different languages.
95
+ It's important to note that AI is not a single entity, but rather a rapidly evolving field that involves many different techniques and technologies. As AI continues to advance, it has the potential to transform many aspects of our lives, from the way we work and interact with each other to the way we make decisions and solve problems.
96
+ ```
97
+
98
+ #### Conclusion
99
+
100
+ LLama 2 can understand the question and gives the user a very specific and overall a better answer compared to the one given by the fine-tuned model. However the fine-tuned model answers with a sentence written in a perfect italian.
101
+
102
  ### Training Data and Details
103
 
104
  The dataset used is [seeweb/Seeweb-it-292-forLLM](https://huggingface.co/datasets/seeweb/Seeweb-it-292-forLLM), a dataset containing approx. 300 italian prompt-answer conversations.