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
|
@@ -13,44 +13,4 @@ tags:
|
|
| 13 |
- mergekit
|
| 14 |
- merge
|
| 15 |
|
| 16 |
-
---
|
| 17 |
-
# merge
|
| 18 |
-
|
| 19 |
-
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 20 |
-
|
| 21 |
-
## Merge Details
|
| 22 |
-
### Merge Method
|
| 23 |
-
|
| 24 |
-
This model was merged using the [SCE](https://arxiv.org/abs/2408.07990) merge method using [TheSkullery/L3.1x3.3-Hydroblated-R1-70B-v4.4](https://huggingface.co/TheSkullery/L3.1x3.3-Hydroblated-R1-70B-v4.4) as a base.
|
| 25 |
-
|
| 26 |
-
### Models Merged
|
| 27 |
-
|
| 28 |
-
The following models were included in the merge:
|
| 29 |
-
* [EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0](https://huggingface.co/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0)
|
| 30 |
-
* [Sao10K/L3.1-70B-Hanami-x1](https://huggingface.co/Sao10K/L3.1-70B-Hanami-x1)
|
| 31 |
-
* [Sao10K/L3.3-70B-Euryale-v2.3](https://huggingface.co/Sao10K/L3.3-70B-Euryale-v2.3)
|
| 32 |
-
* [LatitudeGames/Wayfarer-Large-70B-Llama-3.3](https://huggingface.co/LatitudeGames/Wayfarer-Large-70B-Llama-3.3)
|
| 33 |
-
* [TheDrummer/Anubis-70B-v1](https://huggingface.co/TheDrummer/Anubis-70B-v1)
|
| 34 |
-
* [SicariusSicariiStuff/Negative_LLAMA_70B](https://huggingface.co/SicariusSicariiStuff/Negative_LLAMA_70B)
|
| 35 |
-
* [Sao10K/70B-L3.3-Cirrus-x1](https://huggingface.co/Sao10K/70B-L3.3-Cirrus-x1)
|
| 36 |
-
|
| 37 |
-
### Configuration
|
| 38 |
-
|
| 39 |
-
The following YAML configuration was used to produce this model:
|
| 40 |
-
|
| 41 |
-
```yaml
|
| 42 |
-
base_model: TheSkullery/L3.1x3.3-Hydroblated-R1-70B-v4.4
|
| 43 |
-
merge_method: sce
|
| 44 |
-
dype: float32
|
| 45 |
-
out_dtype: bfloat16
|
| 46 |
-
Parameters:
|
| 47 |
-
select_topk: 0.16
|
| 48 |
-
models:
|
| 49 |
-
- model: EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0
|
| 50 |
-
- model: LatitudeGames/Wayfarer-Large-70B-Llama-3.3
|
| 51 |
-
- model: Sao10K/L3.3-70B-Euryale-v2.3
|
| 52 |
-
- model: Sao10K/70B-L3.3-Cirrus-x1
|
| 53 |
-
- model: Sao10K/L3.1-70B-Hanami-x1
|
| 54 |
-
- model: TheDrummer/Anubis-70B-v1
|
| 55 |
-
- model: SicariusSicariiStuff/Negative_LLAMA_70B
|
| 56 |
-
```
|
|
|
|
| 13 |
- mergekit
|
| 14 |
- merge
|
| 15 |
|
| 16 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|