-
Notifications
You must be signed in to change notification settings - Fork 33.7k
[i18n-ar] Translated file : docs/source/ar/tflite.md into Arabic
#33077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
AhmedAlmaghz
wants to merge
7
commits into
huggingface:main
from
AhmedAlmaghz:Add_docs_source_ar_tflite.md
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
05cde41
Add docs/source/ar/tflite.md to Add_docs_source_ar_tflite.md
AhmedAlmaghz 6e58dfc
Update docs/source/ar/tflite.md
AhmedAlmaghz 5c16adf
Update docs/source/ar/tflite.md
AhmedAlmaghz 6e3fa5a
Update docs/source/ar/tflite.md
AhmedAlmaghz e87b78e
Update docs/source/ar/tflite.md
AhmedAlmaghz 29ff020
Update docs/source/ar/tflite.md
AhmedAlmaghz 29b167a
Update docs/source/ar/tflite.md
AhmedAlmaghz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # التصدير إلى TFLite | ||
|
|
||
| [TensorFlow Lite](https://www.tensorflow.org/lite/guide) هو إطار عمل خفيف الوزن لنشر نماذج التعلم الآلي على الأجهزة المحدودة الموارد، مثل الهواتف المحمولة، والأنظمة المدمجة، وأجهزة إنترنت الأشياء (IoT). تم تصميم TFLite لتشغيل النماذج وتحسينها بكفاءة على هذه الأجهزة ذات الطاقة الحاسوبية والذاكرة واستهلاك الطاقة المحدودة. | ||
|
|
||
| يتم تمثيل نموذج TensorFlow Lite بتنسيق محمول فعال خاص يتم تحديده بواسطة امتداد الملف `.tflite`. | ||
|
|
||
| 🤗 Optimum يقدم وظيفة لتصدير نماذج 🤗 Transformers إلى TFLite من خلال الوحدة النمطية `exporters.tflite`. بالنسبة لقائمة هندسات النماذج المدعومة، يرجى الرجوع إلى [وثائق 🤗 Optimum](https://huggingface.co/docs/optimum/exporters/tflite/overview). | ||
|
|
||
| لتصدير نموذج إلى TFLite، قم بتثبيت التبعيات المطلوبة: | ||
|
AhmedAlmaghz marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```bash | ||
| pip install optimum[exporters-tf] | ||
| ``` | ||
|
|
||
| للاطلاع على جميع الحجج المتاحة، راجع [وثائق 🤗 Optimum](https://huggingface.co/docs/optimum/main/en/exporters/tflite/usage_guides/export_a_model)، أو عرض المساعدة في سطر الأوامر: | ||
|
AhmedAlmaghz marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```bash | ||
| optimum-cli export tflite --help | ||
| ``` | ||
|
|
||
| لتصدير نقطة تفتيش نموذج من 🤗 Hub، على سبيل المثال، `google-bert/bert-base-uncased`، قم بتشغيل الأمر التالي: | ||
|
AhmedAlmaghz marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```bash | ||
| optimum-cli export tflite --model google-bert/bert-base-uncased --sequence_length 128 bert_tflite/ | ||
| ``` | ||
|
|
||
| يجب أن تشاهد السجلات التي تشير إلى التقدم وتعرض المكان الذي تم فيه حفظ `model.tflite` الناتج، مثل هذا: | ||
|
AhmedAlmaghz marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```bash | ||
| Validating TFLite model... | ||
| -[✓] TFLite model output names match reference model (logits) | ||
| - Validating TFLite Model output "logits": | ||
| -[✓] (1, 128, 30522) matches (1, 128, 30522) | ||
| -[x] values not close enough, max diff: 5.817413330078125e-05 (atol: 1e-05) | ||
| The TensorFlow Lite export succeeded with the warning: The maximum absolute difference between the output of the reference model and the TFLite exported model is not within the set tolerance 1e-05: | ||
| - logits: max diff = 5.817413330078125e-05. | ||
| The exported model was saved at: bert_tflite | ||
| ``` | ||
|
|
||
| يوضح المثال أعلاه تصدير نقطة تفتيش من 🤗 Hub. عند تصدير نموذج محلي، تأكد أولاً من حفظ ملفات أوزان النموذج ومحول الرموز في نفس الدليل (`local_path`). عند استخدام CLI، قم بتمرير `local_path` إلى حجة `model` بدلاً من اسم نقطة التفتيش على 🤗 Hub. | ||
|
AhmedAlmaghz marked this conversation as resolved.
Outdated
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.