Happzy-WHU commited on
Commit
5a54d5d
1 Parent(s): 84a6c36

load from huggingface

Browse files
Files changed (2) hide show
  1. README.md +1 -2
  2. V3.py +1 -7
README.md CHANGED
@@ -22,9 +22,8 @@ git clone https://huggingface.co/spaces/happzy2633/open-o1
22
 
23
  2. Install the dependencies listed in requirements.txt.
24
 
25
- 3. Replace the value of the use\_auth\_token variable with your own.
26
 
27
- 4. Execute the script below.
28
 
29
 
30
  ```shell
 
22
 
23
  2. Install the dependencies listed in requirements.txt.
24
 
 
25
 
26
+ 3. Execute the script below.
27
 
28
 
29
  ```shell
V3.py CHANGED
@@ -4,13 +4,7 @@ from transformers import AutoTokenizer
4
  from vllm import LLM, SamplingParams
5
  from huggingface_hub import snapshot_download
6
 
7
- use_auth_token = os.getenv("YOUR_AUTH_TOKEN")
8
-
9
- repo_id = "m-a-p/qwen2.5-7b-ins-v3"
10
- local_dir = repo_id.rsplit("/")[-1]
11
- snapshot_download(repo_id=repo_id, local_dir=local_dir, use_auth_token=use_auth_token, resume_download=True)
12
-
13
- model_path = "qwen2.5-7b-ins-v3/checkpoint-1000"
14
 
15
  tokenizer = AutoTokenizer.from_pretrained(model_path)
16
  sampling_params = SamplingParams(temperature=0.7, top_p=0.8, repetition_penalty=1.05, max_tokens=8192)
 
4
  from vllm import LLM, SamplingParams
5
  from huggingface_hub import snapshot_download
6
 
7
+ model_path = "happzy2633/qwen2.5-7b-ins-v3"
 
 
 
 
 
 
8
 
9
  tokenizer = AutoTokenizer.from_pretrained(model_path)
10
  sampling_params = SamplingParams(temperature=0.7, top_p=0.8, repetition_penalty=1.05, max_tokens=8192)