sixf0ur commited on
Commit
4c2ea60
·
verified ·
1 Parent(s): 6a25659

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -25,6 +25,22 @@ Designed exclusively to describe and classify smells and aromas.
25
  - **Training date:** July 2025
26
  - **License:** CC BY 4.0
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  ### Citation
30
  ```json
 
25
  - **Training date:** July 2025
26
  - **License:** CC BY 4.0
27
 
28
+ ## Usage
29
+ ```python
30
+ from transformers import AutoModelForCausalLM, AutoTokenizer
31
+
32
+ model_name = "sixf0ur/ScentLLaMA"
33
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
34
+ model = AutoModelForCausalLM.from_pretrained(model_name)
35
+
36
+ prompt = "A fresh and fruity aroma with hints of"
37
+ inputs = tokenizer(prompt, return_token_type_ids=False, return_tensors="pt")
38
+ outputs = model.generate(**inputs, max_new_tokens=25)
39
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
40
+
41
+ # > A fresh and fruity aroma with hints of green leaves and a hint of something earthy. It is a ripe plum.
42
+ ```
43
+
44
 
45
  ### Citation
46
  ```json