Instructions to use Steelskull/L3.3-Electra-R1-70b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Steelskull/L3.3-Electra-R1-70b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Steelskull/L3.3-Electra-R1-70b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Steelskull/L3.3-Electra-R1-70b") model = AutoModelForCausalLM.from_pretrained("Steelskull/L3.3-Electra-R1-70b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Steelskull/L3.3-Electra-R1-70b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Steelskull/L3.3-Electra-R1-70b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Steelskull/L3.3-Electra-R1-70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Steelskull/L3.3-Electra-R1-70b
- SGLang
How to use Steelskull/L3.3-Electra-R1-70b 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 "Steelskull/L3.3-Electra-R1-70b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Steelskull/L3.3-Electra-R1-70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Steelskull/L3.3-Electra-R1-70b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Steelskull/L3.3-Electra-R1-70b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Steelskull/L3.3-Electra-R1-70b with Docker Model Runner:
docker model run hf.co/Steelskull/L3.3-Electra-R1-70b
Update README.md
Browse files
README.md
CHANGED
|
@@ -2205,7 +2205,7 @@ library_name: transformers
|
|
| 2205 |
<div class="template-card">
|
| 2206 |
<div class="template-item">
|
| 2207 |
<div class="template-content">
|
| 2208 |
-
<a href="https://huggingface.co/
|
| 2209 |
LeCeption v2
|
| 2210 |
<span class="link-arrow">→</span>
|
| 2211 |
</a>
|
|
@@ -2221,13 +2221,18 @@ library_name: transformers
|
|
| 2221 |
<div class="settings-grid">
|
| 2222 |
<div class="settings-card">
|
| 2223 |
<div class="settings-header">
|
| 2224 |
-
<h3>Start Reply With:</h3>
|
| 2225 |
</div>
|
| 2226 |
<div class="settings-content">
|
| 2227 |
<div class="setting-item">
|
| 2228 |
<p>'<span style="color: #00b2ff"><think></span> OK, as an objective, detached narrative analyst, let's think this through carefully:'</p>
|
| 2229 |
</div>
|
| 2230 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2231 |
</div>
|
| 2232 |
<div class="settings-card">
|
| 2233 |
<div class="settings-header">
|
|
|
|
| 2205 |
<div class="template-card">
|
| 2206 |
<div class="template-item">
|
| 2207 |
<div class="template-content">
|
| 2208 |
+
<a href="https://huggingface.co/TheSkullery/Unnamed-Exp-70b-v0.6.A/blob/main/LeCeption-XML-V2.json" target="_blank" class="template-link">
|
| 2209 |
LeCeption v2
|
| 2210 |
<span class="link-arrow">→</span>
|
| 2211 |
</a>
|
|
|
|
| 2221 |
<div class="settings-grid">
|
| 2222 |
<div class="settings-card">
|
| 2223 |
<div class="settings-header">
|
| 2224 |
+
<h3>Start Reply With: (Either)</h3>
|
| 2225 |
</div>
|
| 2226 |
<div class="settings-content">
|
| 2227 |
<div class="setting-item">
|
| 2228 |
<p>'<span style="color: #00b2ff"><think></span> OK, as an objective, detached narrative analyst, let's think this through carefully:'</p>
|
| 2229 |
</div>
|
| 2230 |
</div>
|
| 2231 |
+
<div class="settings-content">
|
| 2232 |
+
<div class="setting-item">
|
| 2233 |
+
<p>'<span style="color: #00b2ff"><think></span> OK, the user is asking'</p>
|
| 2234 |
+
</div>
|
| 2235 |
+
</div>
|
| 2236 |
</div>
|
| 2237 |
<div class="settings-card">
|
| 2238 |
<div class="settings-header">
|