Text Generation
PEFT
Safetensors
English
activation-steering
representation-engineering
affective-computing
research
lora
conversational
Instructions to use CODELOCKHF/CODELOCK-8Bbeta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use CODELOCKHF/CODELOCK-8Bbeta with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "CODELOCKHF/CODELOCK-8Bbeta") - Notebooks
- Google Colab
- Kaggle
Download codelock_affect/__init__.py from CODELOCKHF/CODELOCK-8Bbeta: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/CODELOCKHF/CODELOCK-8Bbeta/resolve/main/codelock_affect/__init__.py
- Command line
-
hf download hf://CODELOCKHF/CODELOCK-8Bbeta/codelock_affect/__init__.py
-
curl -L -o __init__.py https://huggingface.co/CODELOCKHF/CODELOCK-8Bbeta/resolve/main/codelock_affect/__init__.py
537 Bytes
| """CODELOCK: stateful, independently calibrated affect control for causal LMs.""" | |
| from .core import AffectCore, EventSpec, Variable, DEFAULT_EVENTS | |
| from .channels import AffectLevels | |
| from .config import ProjectConfig, AffectConfig, SteeringConfig, GenerationConfig | |
| from .session import AffectEngine | |
| __version__ = "0.2.0" | |
| __all__ = [ | |
| "AffectCore", | |
| "EventSpec", | |
| "Variable", | |
| "DEFAULT_EVENTS", | |
| "AffectLevels", | |
| "ProjectConfig", | |
| "AffectConfig", | |
| "SteeringConfig", | |
| "GenerationConfig", | |
| "AffectEngine", | |
| ] | |