update
Browse files- README.md +2 -2
- config.json +1 -1
README.md
CHANGED
@@ -26,11 +26,11 @@ torch.set_default_device("cuda")
|
|
26 |
|
27 |
#Create model
|
28 |
model = AutoModelForCausalLM.from_pretrained(
|
29 |
-
"
|
30 |
torch_dtype=torch.float16,
|
31 |
device_map="auto",
|
32 |
trust_remote_code=True)
|
33 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
34 |
|
35 |
#Set inputs
|
36 |
text = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <image>\nWhat are the colors of the bus in the image? ASSISTANT:"
|
|
|
26 |
|
27 |
#Create model
|
28 |
model = AutoModelForCausalLM.from_pretrained(
|
29 |
+
"MILVLG/imp-v0-3b",
|
30 |
torch_dtype=torch.float16,
|
31 |
device_map="auto",
|
32 |
trust_remote_code=True)
|
33 |
+
tokenizer = AutoTokenizer.from_pretrained("MILVLG/imp-v0-3b", trust_remote_code=True)
|
34 |
|
35 |
#Set inputs
|
36 |
text = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: <image>\nWhat are the colors of the bus in the image? ASSISTANT:"
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
"ImpForCausalLM"
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "MILVLG/Imp-v0-3b",
|
3 |
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
"ImpForCausalLM"
|