Update README.md
Browse files
README.md
CHANGED
@@ -20,7 +20,6 @@ This model was trained using AutoTrain. For more information, please visit [Auto
|
|
20 |
# Usage
|
21 |
|
22 |
```python
|
23 |
-
|
24 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
25 |
|
26 |
model_path = "PATH_TO_THIS_REPO"
|
@@ -43,4 +42,20 @@ response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tok
|
|
43 |
|
44 |
# Model response: "Hello! How can I assist you today?"
|
45 |
print(response)
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
# Usage
|
21 |
|
22 |
```python
|
|
|
23 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
24 |
|
25 |
model_path = "PATH_TO_THIS_REPO"
|
|
|
42 |
|
43 |
# Model response: "Hello! How can I assist you today?"
|
44 |
print(response)
|
45 |
+
|
46 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
47 |
+
|
48 |
+
model_path = "alexsherstinsky/Mistral-7B-v0.1-sharded"
|
49 |
+
|
50 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
51 |
+
model = AutoModelForCausalLM.from_pretrained(
|
52 |
+
model_path,
|
53 |
+
device_map="auto",
|
54 |
+
torch_dtype='auto'
|
55 |
+
).eval()
|
56 |
+
|
57 |
+
# Input: Create a string of opposite features to the given input: Caucasian male, mid-30s, angular jawline with light stubble, prominent cheekbones, thin lips, sharp nose, narrow nose, sharp blue eyes, high forehead, receding hairline, sparse eyebrows.
|
58 |
+
# Output: Rounded jawline, heavy beard, subtle cheekbones, full lips, rounded and broad nose, large, round and dark eyes, low hairline, thick eyebrows.
|
59 |
+
|
60 |
+
# Input: Extract important facial and hair details from the description and give them in a comma-separated string. Suspect is a female, likely in her late 20s to early 30s, with a distinctly oval-shaped face. She possesses soft, rounded features, including full lips. Her nose is petite and slightly upturned and has almond-shaped eyes of a deep brown color with long, fluttery eyelashes. She has high cheekbones, and her skin is smooth, unblemished. She has expressive eyebrows, that are gently arched.
|
61 |
+
# Output: Female, late 20s to early 30s, oval-shaped face, soft rounded features, full lips, petite and slightly upturned nose, almond-shaped deep brown eyes, long fluttery eyelashes, high cheekbones, smooth unblemished skin, expressive gently arched eyebrows.
|