How to use from
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 "SZTAKI-HLT/Llama-3.2-1B-HuAMR" \
    --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": "SZTAKI-HLT/Llama-3.2-1B-HuAMR",
		"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 "SZTAKI-HLT/Llama-3.2-1B-HuAMR" \
        --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": "SZTAKI-HLT/Llama-3.2-1B-HuAMR",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Model Card for Llama-3.2-1B-HuAMR

Model Details

Model Description

This model is a fine-tuned version of meta-llama/Llama-3.2-1B-Instruct on the None dataset. It achieves the following results on the evaluation set:

  • Model type: Abstract Meaning Representation parser
  • Language(s) (NLP): Hungarian

Model Sources [optional]

Training Details

Training Procedure

Training Hyperparameters

  • learning_rate: 5e-05
  • train_batch_size: 1
  • gradient_accumulation_steps: 16
  • total_train_batch_size: 16
  • optimizer: AdamW
  • lr_scheduler_type: linear
  • max_grad_norm: 0.3

Metrics

[More Information Needed]

Citation [optional]

BibTeX:

[More Information Needed]

Framework versions

  • Transformers 4.34.1
  • Pytorch 2.3.0+cu118
  • Datasets 2.19.0
  • Tokenizers 0.19.1
Downloads last month
15
Safetensors
Model size
1B params
Tensor type
F32
Β·
Inference Providers NEW
Input a message to start chatting with SZTAKI-HLT/Llama-3.2-1B-HuAMR.

Model tree for SZTAKI-HLT/Llama-3.2-1B-HuAMR

Finetuned
(1804)
this model
Quantizations
1 model

Spaces using SZTAKI-HLT/Llama-3.2-1B-HuAMR 15