neighborwang commited on
Commit
6973d9f
1 Parent(s): d48aac0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -40
README.md CHANGED
@@ -1,46 +1,12 @@
1
  ---
2
  tags:
3
- - autotrain
4
- - text-generation-inference
5
- - text-generation
6
- - peft
7
  library_name: transformers
8
  base_model: Qwen/Qwen2.5-Coder-7B-Instruct
9
- widget:
10
- - messages:
11
- - role: user
12
- content: What is your favorite condiment?
13
- license: other
14
  ---
15
 
16
- # Model Trained Using AutoTrain
17
-
18
- This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
19
-
20
- # Usage
21
-
22
- ```python
23
-
24
- from transformers import AutoModelForCausalLM, AutoTokenizer
25
-
26
- model_path = "PATH_TO_THIS_REPO"
27
-
28
- tokenizer = AutoTokenizer.from_pretrained(model_path)
29
- model = AutoModelForCausalLM.from_pretrained(
30
- model_path,
31
- device_map="auto",
32
- torch_dtype='auto'
33
- ).eval()
34
-
35
- # Prompt content: "hi"
36
- messages = [
37
- {"role": "user", "content": "hi"}
38
- ]
39
-
40
- input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
41
- output_ids = model.generate(input_ids.to('cuda'))
42
- response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
43
-
44
- # Model response: "Hello! How can I assist you today?"
45
- print(response)
46
- ```
 
1
  ---
2
  tags:
3
+ - modelica
 
 
 
4
  library_name: transformers
5
  base_model: Qwen/Qwen2.5-Coder-7B-Instruct
6
+ license: apache-2.0
7
+ language:
8
+ - en
9
+ pipeline_tag: text2text-generation
 
10
  ---
11
 
12
+ # ModeliCo - The Modelica GPT