Instructions to use psikosen/snow_spike with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use psikosen/snow_spike with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("psikosen/snow_spike") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use psikosen/snow_spike with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "psikosen/snow_spike" --prompt "Once upon a time"
- Atomic Chat
Download src/utils/common.py from psikosen/snow_spike: direct link, hf CLI and curl.
- Browser
- Download file 765 Bytes
-
https://huggingface.co/psikosen/snow_spike/resolve/main/src/utils/common.py
- Command line
-
hf download hf://psikosen/snow_spike/src/utils/common.py
-
curl -L -o common.py https://huggingface.co/psikosen/snow_spike/resolve/main/src/utils/common.py
765 Bytes
| """ | |
| Common utilities and shared elements for the snow_spike package. | |
| """ | |
| from enum import Enum | |
| from typing import Dict, List, Optional, Union, Any | |
| # Define the SpikeState enum for representing neuron states | |
| SpikeState = Enum('SpikeState', { | |
| 'NEGATIVE': -1, | |
| 'NEUTRAL': 0, | |
| 'POSITIVE': 1 | |
| }) | |
| # Define the CrossCheckType enum for normalization | |
| CrossCheckType = Enum('CrossCheckType', [ | |
| 'COSINE_SIMILARITY', | |
| 'GENERAL_SCORE' | |
| ]) | |
| # Define the DecayStrategy enum for decay mechanisms | |
| DecayStrategy = Enum('DecayStrategy', [ | |
| 'CONTINUOUS_ON_READ', | |
| 'DISCRETE_BATCH', | |
| 'NO_DECAY' | |
| ]) | |
| # Type aliases for improved readability | |
| SpikeCounts = Dict[SpikeState, int] | |
| SpikeProbabilities = Dict[SpikeState, float] | |
| SpikeData = List[int] | |
| Timestamp = float | |