Instructions to use prelington/CodexTrouter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use prelington/CodexTrouter with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("prelington/CodexTrouter", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Download ProTalk_ModelExporter.py from prelington/CodexTrouter: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/prelington/CodexTrouter/resolve/78fd7da5fecf8a56575bf147eddbf2e0fdc8e5d9/ProTalk_ModelExporter.py
- Command line
-
hf download hf://prelington/CodexTrouter@78fd7da5fecf8a56575bf147eddbf2e0fdc8e5d9/ProTalk_ModelExporter.py
-
curl -L -o ProTalk_ModelExporter.py https://huggingface.co/prelington/CodexTrouter/resolve/78fd7da5fecf8a56575bf147eddbf2e0fdc8e5d9/ProTalk_ModelExporter.py
253 Bytes
| from transformers import AutoModelForCausalLM | |
| from safetensors.torch import save_file | |
| model_name = "microsoft/phi-2" | |
| model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto") | |
| save_file(model.state_dict(), "ProTalkModel.safetensors") | |