Views
No views yet
| 원본 | 이 저장소 | |
|---|---|---|
| 형식 | safetensors (bf16) | OpenVINO IR |
| 정밀도 | bf16 | INT4 (group_size 128, ratio 1.0) |
| 크기 | 약 5 GB | 1.59 GB |
1optimum-cli export openvino \
2 --model ModelSpace/GemmaX2-28-2B-v0.1 \
3 --task text-generation-with-past \
4 --weight-format int4 --group-size 128 --ratio 1.0 \
5 GemmaX2-28-2B-int4-ov| 항목 | 값 |
|---|---|
| 적재 시간 | 19초 |
| GPU 메모리 | 1,578 MB |
| 생성 속도 | 38.3 tok/s |
| 문장 한 줄(30토큰) | 0.78초 |
Let's circle back →
2B "제품 팀과 일치한 후에 이것을 다시 돌아보자" / 9B "제품 팀과 조율한 후에 이 문제를
다시 살펴보겠습니다").1import openvino_genai as ov_genai
2
3pipe = ov_genai.LLMPipeline("GemmaX2-28-2B-int4-ov", "GPU")
4cfg = ov_genai.GenerationConfig()
5cfg.max_new_tokens = 256
6cfg.do_sample = False # 번역은 결정적 디코딩
7
8text = "The committee will hold a hearing today."
9prompt = f"Translate this from English to Korean:\nEnglish: {text}\nKorean:"
10print(pipe.generate(prompt, cfg))
11# → 위원회는 오늘 청문회를 개최할 예정입니다.on the same page가 "같은 페이지에 있는지"로
직역됩니다. 이는 원본 모델과 모델 크기의 한계이며 양자화 때문이 아닙니다.-습니다 / -어요 / -이다)가 섞일 수 있습니다. 시스템 프롬프트로
고정하는 것을 권합니다.Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms