Instructions to use jonl521/modeling_simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonl521/modeling_simple with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jonl521/modeling_simple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download .venv/lib/python3.14/site-packages/mpmath/tests/test_str.py from jonl521/modeling_simple: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/mpmath/tests/test_str.py
- Command line
-
hf download hf://jonl521/modeling_simple/.venv/lib/python3.14/site-packages/mpmath/tests/test_str.py
-
curl -L -o test_str.py https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/mpmath/tests/test_str.py
544 Bytes
| from mpmath import nstr, matrix, inf | |
| def test_nstr(): | |
| m = matrix([[0.75, 0.190940654, -0.0299195971], | |
| [0.190940654, 0.65625, 0.205663228], | |
| [-0.0299195971, 0.205663228, 0.64453125e-20]]) | |
| assert nstr(m, 4, min_fixed=-inf) == \ | |
| '''[ 0.75 0.1909 -0.02992] | |
| [ 0.1909 0.6563 0.2057] | |
| [-0.02992 0.2057 0.000000000000000000006445]''' | |
| assert nstr(m, 4) == \ | |
| '''[ 0.75 0.1909 -0.02992] | |
| [ 0.1909 0.6563 0.2057] | |
| [-0.02992 0.2057 6.445e-21]''' | |