Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

rain1955
/
emotion-vector-replication

Text Generation
Transformers
emotion-vectors
interpretability
mechanistic-interpretability
replication
gemma4
google
anthropic
valence-arousal
PCA
logit-lens
linear-probe
probing
emotion
functional-emotions
AI-safety
neuroscience
circumplex-model
activation-extraction
residual-stream
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use rain1955/emotion-vector-replication with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use rain1955/emotion-vector-replication with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="rain1955/emotion-vector-replication")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("rain1955/emotion-vector-replication", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use rain1955/emotion-vector-replication with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "rain1955/emotion-vector-replication"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "rain1955/emotion-vector-replication",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/rain1955/emotion-vector-replication
  • SGLang

    How to use rain1955/emotion-vector-replication with SGLang:

    Install from pip and serve model
    # Install SGLang from pip:
    pip install sglang
    # Start the SGLang server:
    python3 -m sglang.launch_server \
        --model-path "rain1955/emotion-vector-replication" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "rain1955/emotion-vector-replication",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker images
    docker run --gpus all \
        --shm-size 32g \
        -p 30000:30000 \
        -v ~/.cache/huggingface:/root/.cache/huggingface \
        --env "HF_TOKEN=<secret>" \
        --ipc=host \
        lmsysorg/sglang:latest \
        python3 -m sglang.launch_server \
            --model-path "rain1955/emotion-vector-replication" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "rain1955/emotion-vector-replication",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use rain1955/emotion-vector-replication with Docker Model Runner:

    docker model run hf.co/rain1955/emotion-vector-replication
emotion-vector-replication / results
1.11 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
rain1955's picture
rain1955
Sanitize: remove internal codenames
43e30a3 verified about 2 months ago
  • THREADS_DATA.md
    5.7 kB
    Sanitize: remove internal codenames about 2 months ago
  • emotion_vectors.npz

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    94.4 kB
    xet
    Add results/emotion_vectors.npz about 2 months ago
  • experiment_results.json
    14.9 kB
    Add results/experiment_results.json about 2 months ago
  • fig1_pca_scatter.png
    204 kB
    xet
    Add results/fig1_pca_scatter.png about 2 months ago
  • fig2_cosine_heatmap.png
    278 kB
    xet
    Add results/fig2_cosine_heatmap.png about 2 months ago
  • fig3_logit_lens.png
    281 kB
    xet
    Add results/fig3_logit_lens.png about 2 months ago
  • fig4_scale_comparison.png
    232 kB
    xet
    Add results/fig4_scale_comparison.png about 2 months ago