Text Generation
Transformers
Safetensors
imp
custom_code
Oyoy1235 commited on
Commit
4afa441
1 Parent(s): e6f6455
Files changed (2) hide show
  1. README.md +2 -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
- "milvlg/imp-v0",
30
  torch_dtype=torch.float16,
31
  device_map="auto",
32
  trust_remote_code=True)
33
- tokenizer = AutoTokenizer.from_pretrained("milvlg/imp-v0", 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:"
 
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": "milvlg/Imp-v0-3b",
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"