Hjgugugjhuhjggg commited on
Commit
153386d
·
verified ·
1 Parent(s): 0005383

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -2,9 +2,9 @@
2
  library_name: transformers
3
  license: apache-2.0
4
  pipeline_tag: text-generation
5
- base_model: lilmeaty/Jaja-small
6
  tags:
7
  - mlx
 
8
  ---
9
 
10
  # Hjgugugjhuhjggg/Jaja-small-mlx-2Bit
@@ -26,7 +26,9 @@ prompt = "hello"
26
 
27
  if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
28
  messages = [{"role": "user", "content": prompt}]
29
- prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
 
 
30
 
31
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
32
  ```
 
2
  library_name: transformers
3
  license: apache-2.0
4
  pipeline_tag: text-generation
 
5
  tags:
6
  - mlx
7
+ base_model: lilmeaty/Jaja-small
8
  ---
9
 
10
  # Hjgugugjhuhjggg/Jaja-small-mlx-2Bit
 
26
 
27
  if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
28
  messages = [{"role": "user", "content": prompt}]
29
+ prompt = tokenizer.apply_chat_template(
30
+ messages, tokenize=False, add_generation_prompt=True
31
+ )
32
 
33
  response = generate(model, tokenizer, prompt=prompt, verbose=True)
34
  ```