Instructions to use Kwaipilot/KwaiCoder-AutoThink-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kwaipilot/KwaiCoder-AutoThink-preview with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Kwaipilot/KwaiCoder-AutoThink-preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -67,8 +67,8 @@ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
|
| 67 |
generated_ids = model.generate(
|
| 68 |
**model_inputs,
|
| 69 |
max_new_tokens=32768,
|
| 70 |
-
temperature=
|
| 71 |
-
top_p=
|
| 72 |
)
|
| 73 |
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
|
| 74 |
content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")
|
|
|
|
| 67 |
generated_ids = model.generate(
|
| 68 |
**model_inputs,
|
| 69 |
max_new_tokens=32768,
|
| 70 |
+
temperature=0.6,
|
| 71 |
+
top_p=0.9,
|
| 72 |
)
|
| 73 |
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
|
| 74 |
content = tokenizer.decode(output_ids, skip_special_tokens=True).strip("\n")
|