divjotst commited on
Commit
413bcac
1 Parent(s): dec97aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -3
README.md CHANGED
@@ -1,3 +1,15 @@
1
- ---
2
- license: llama3
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
4
+ library_name: transformers
5
+ ---
6
+ import transformers
7
+ import torch
8
+
9
+ model_id = "meta-llama/Meta-Llama-3.1-8B"
10
+
11
+ pipeline = transformers.pipeline(
12
+ "text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto"
13
+ )
14
+
15
+ pipeline("Hey how are you doing today?")