Felguk commited on
Commit
43b1c0c
·
verified ·
1 Parent(s): 8438014

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -3
README.md CHANGED
@@ -1,3 +1,38 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated
5
+ - text-generation
6
+ - conversational
7
+ - pytorch
8
+ - transformers
9
+ - ShareAI
10
+ - Felguk
11
+ ---
12
+
13
+ # Felguk0.5-turbo-preview
14
+
15
+ The **Felguk0.5-turbo-preview** model is a preview version of a powerful language model developed by ShareAI. It is designed for text generation, conversational systems, and other NLP tasks. Built on the Transformer architecture, this model is optimized for high performance.
16
+
17
+ ## Usage
18
+
19
+ To use the model with the `transformers` library:
20
+
21
+ ```python
22
+ from transformers import AutoModelForCausalLM, AutoTokenizer
23
+
24
+ # Load the model and tokenizer
25
+ model_name = "shareAI/Felguk0.5-turbo-preview"
26
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
27
+ model = AutoModelForCausalLM.from_pretrained(model_name)
28
+
29
+ # Example input
30
+ input_text = "Hello! How are you?"
31
+
32
+ # Tokenize and generate a response
33
+ inputs = tokenizer(input_text, return_tensors="pt")
34
+ outputs = model.generate(**inputs, max_length=50)
35
+
36
+ # Decode and print the result
37
+ response = tokenizer.decode(outputs[0], skip_special_tokens=True)
38
+ print(response)