Instructions to use mrapacz/interlinear-en-greta-emb-auto-normalized-ob with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrapacz/interlinear-en-greta-emb-auto-normalized-ob with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mrapacz/interlinear-en-greta-emb-auto-normalized-ob")# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("mrapacz/interlinear-en-greta-emb-auto-normalized-ob", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mrapacz/interlinear-en-greta-emb-auto-normalized-ob with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mrapacz/interlinear-en-greta-emb-auto-normalized-ob" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mrapacz/interlinear-en-greta-emb-auto-normalized-ob", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mrapacz/interlinear-en-greta-emb-auto-normalized-ob
- SGLang
How to use mrapacz/interlinear-en-greta-emb-auto-normalized-ob 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 "mrapacz/interlinear-en-greta-emb-auto-normalized-ob" \ --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": "mrapacz/interlinear-en-greta-emb-auto-normalized-ob", "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 "mrapacz/interlinear-en-greta-emb-auto-normalized-ob" \ --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": "mrapacz/interlinear-en-greta-emb-auto-normalized-ob", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mrapacz/interlinear-en-greta-emb-auto-normalized-ob with Docker Model Runner:
docker model run hf.co/mrapacz/interlinear-en-greta-emb-auto-normalized-ob
Upload MorphT5AutoForConditionalGeneration
Browse files- config.json +6 -4
- pytorch_model.bin +2 -2
config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
"d_ff": 2048,
|
| 7 |
"d_kv": 64,
|
|
@@ -16,7 +16,9 @@
|
|
| 16 |
"is_encoder_decoder": true,
|
| 17 |
"is_gated_act": true,
|
| 18 |
"layer_norm_epsilon": 1e-06,
|
| 19 |
-
"model_type": "
|
|
|
|
|
|
|
| 20 |
"num_decoder_layers": 12,
|
| 21 |
"num_heads": 12,
|
| 22 |
"num_layers": 12,
|
|
@@ -25,7 +27,7 @@
|
|
| 25 |
"relative_attention_max_distance": 128,
|
| 26 |
"relative_attention_num_buckets": 32,
|
| 27 |
"tie_word_embeddings": false,
|
| 28 |
-
"tokenizer_class": "
|
| 29 |
"torch_dtype": "float32",
|
| 30 |
"transformers_version": "4.31.0",
|
| 31 |
"use_cache": true,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "../workspaces/exp512_3_INTMT-5794/best_model",
|
| 3 |
"architectures": [
|
| 4 |
+
"MorphT5AutoForConditionalGeneration"
|
| 5 |
],
|
| 6 |
"d_ff": 2048,
|
| 7 |
"d_kv": 64,
|
|
|
|
| 16 |
"is_encoder_decoder": true,
|
| 17 |
"is_gated_act": true,
|
| 18 |
"layer_norm_epsilon": 1e-06,
|
| 19 |
+
"model_type": "morph-t5-auto",
|
| 20 |
+
"morph_compressed_embedding_size": 64,
|
| 21 |
+
"morph_vocabulary_size": 1074,
|
| 22 |
"num_decoder_layers": 12,
|
| 23 |
"num_heads": 12,
|
| 24 |
"num_layers": 12,
|
|
|
|
| 27 |
"relative_attention_max_distance": 128,
|
| 28 |
"relative_attention_num_buckets": 32,
|
| 29 |
"tie_word_embeddings": false,
|
| 30 |
+
"tokenizer_class": "morpht5.tokenizer.morph_t5_tokenizer.MorphT5Tokenizer",
|
| 31 |
"torch_dtype": "float32",
|
| 32 |
"transformers_version": "4.31.0",
|
| 33 |
"use_cache": true,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c32fd6db5f8d2959f3d611ec9bbf188507c15207bccf8b1e6150e9f875d9328
|
| 3 |
+
size 990131262
|