Text Generation
Transformers
Safetensors
English
llama
Merge
Eval Results (legacy)
text-generation-inference
Instructions to use altomek/CodeRosa-70B-AB1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use altomek/CodeRosa-70B-AB1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="altomek/CodeRosa-70B-AB1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("altomek/CodeRosa-70B-AB1") model = AutoModelForCausalLM.from_pretrained("altomek/CodeRosa-70B-AB1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use altomek/CodeRosa-70B-AB1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "altomek/CodeRosa-70B-AB1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "altomek/CodeRosa-70B-AB1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/altomek/CodeRosa-70B-AB1
- SGLang
How to use altomek/CodeRosa-70B-AB1 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 "altomek/CodeRosa-70B-AB1" \ --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": "altomek/CodeRosa-70B-AB1", "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 "altomek/CodeRosa-70B-AB1" \ --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": "altomek/CodeRosa-70B-AB1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use altomek/CodeRosa-70B-AB1 with Docker Model Runner:
docker model run hf.co/altomek/CodeRosa-70B-AB1
Update README.md
Browse files
README.md
CHANGED
|
@@ -32,10 +32,12 @@ Some topics are best to be explored with as little additional instructions as po
|
|
| 32 |
This model have empathy
|
| 33 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaWow.png>
|
| 34 |
<br>
|
|
|
|
| 35 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaTables1png.png>
|
| 36 |
<br>
|
| 37 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaTables2png.png>
|
| 38 |
<br>
|
|
|
|
| 39 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaInfernces.png>
|
| 40 |
<br>
|
| 41 |
Context size of 11K did not yield satisfactory results... :P
|
|
|
|
| 32 |
This model have empathy
|
| 33 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaWow.png>
|
| 34 |
<br>
|
| 35 |
+
It is creative
|
| 36 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaTables1png.png>
|
| 37 |
<br>
|
| 38 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaTables2png.png>
|
| 39 |
<br>
|
| 40 |
+
It makes mistakes but still is usefull
|
| 41 |
<img src=https://huggingface.co/altomek/CodeRosa-70B-AB1/resolve/main/CodeRosaInfernces.png>
|
| 42 |
<br>
|
| 43 |
Context size of 11K did not yield satisfactory results... :P
|