kd13 commited on
Commit
757b8d7
·
verified ·
1 Parent(s): fbbbed5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -27
README.md CHANGED
@@ -53,33 +53,6 @@ For normal chat or coding use, you can use a standard chat-template style prompt
53
 
54
  ---
55
 
56
- ## Basic Usage
57
-
58
- ```python
59
- import torch
60
- from transformers import AutoTokenizer, AutoModelForCausalLM
61
-
62
- MODEL_PATH = "kd13/Coder-o1-mini-reasoning"
63
-
64
- tok = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
65
- model = AutoModelForCausalLM.from_pretrained(
66
- MODEL_PATH,
67
- torch_dtype=torch.float16,
68
- device_map="auto",
69
- trust_remote_code=True
70
- )
71
- model.eval()
72
-
73
- if tok.pad_token is None:
74
- tok.pad_token = tok.eos_token
75
-
76
- IM_END_ID = tok.convert_tokens_to_ids("<|im_end|>")
77
- if IM_END_ID is None or IM_END_ID == tok.unk_token_id:
78
- IM_END_ID = tok.eos_token_id
79
- ```
80
-
81
- ---
82
-
83
  ## Web Search Tool-Call Style
84
 
85
  The model can be used in tool-calling style conversations where the assistant decides when search is needed, emits a tool call, receives a tool result, and then writes the final answer.
 
53
 
54
  ---
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  ## Web Search Tool-Call Style
57
 
58
  The model can be used in tool-calling style conversations where the assistant decides when search is needed, emits a tool call, receives a tool result, and then writes the final answer.