Instructions to use Muhammadreza/ChessGemma-1b-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Muhammadreza/ChessGemma-1b-test with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Muhammadreza/ChessGemma-1b-test", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Muhammadreza/ChessGemma-1b-test with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Muhammadreza/ChessGemma-1b-test to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Muhammadreza/ChessGemma-1b-test to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Muhammadreza/ChessGemma-1b-test to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Muhammadreza/ChessGemma-1b-test", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
| 21 |
from transformers import pipeline
|
| 22 |
|
| 23 |
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 24 |
-
generator = pipeline("text-generation", model="Muhammadreza/
|
| 25 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 26 |
print(output["generated_text"])
|
| 27 |
```
|
|
|
|
| 21 |
from transformers import pipeline
|
| 22 |
|
| 23 |
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 24 |
+
generator = pipeline("text-generation", model="Muhammadreza/ChessGemma-1b-test", device="cuda")
|
| 25 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 26 |
print(output["generated_text"])
|
| 27 |
```
|