Instructions to use SecurityXuanwuLab/HaS-820m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SecurityXuanwuLab/HaS-820m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SecurityXuanwuLab/HaS-820m") model = AutoModelForCausalLM.from_pretrained("SecurityXuanwuLab/HaS-820m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -74,7 +74,7 @@ print(original_output)
|
|
| 74 |
# see hideAndSeek.py in this repo
|
| 75 |
from hideAndSeek import *
|
| 76 |
|
| 77 |
-
tokenizer = AutoTokenizer.from_pretrained("tingxinli/
|
| 78 |
model = AutoModelForCausalLM.from_pretrained("tingxinli/
|
| 79 |
HaS-820m").to('cuda:0')
|
| 80 |
|
|
|
|
| 74 |
# see hideAndSeek.py in this repo
|
| 75 |
from hideAndSeek import *
|
| 76 |
|
| 77 |
+
tokenizer = AutoTokenizer.from_pretrained("tingxinli/HaS-820m")
|
| 78 |
model = AutoModelForCausalLM.from_pretrained("tingxinli/
|
| 79 |
HaS-820m").to('cuda:0')
|
| 80 |
|